• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 13 pages
Exam (elaborations)

Stat 431 Assignment 4 solutions|100% correct

Document preview thumbnail
Preview 2 out of 13 pages

Stat 431 Assignment 4 solutions 1. [16 marks] (a) [4 marks] We start with fitting the log-linear model without a three way interaction term. This model results in a deviance test D = 26.690, p − value = P(χ 2 8 D) = 0. 0.05 So we reject the H0: the model without the three way interaction fits as well as the saturated model (which is the model with three-way interaction). This implies that the three way interaction between age, breathlessness and coughing is necessary to describe the data adequately. Hence, the saturated model is the most appropriate for characterizing the association between these three factors. Specifically, for example, there is an association between breathlessness and coughing, and the nature of that association depends on age. The R Code and Selected Output is given below. # Read in the data data-("",header=TRUE) # Make variables into factors data$af-factor(data$a) data$aft-C(data$af,treatment) data$bf-factor(data$b) data$bft-C(data$bf,treatment) data$cf-factor(data$c) data$cft-C(data$cf,treatment) # Fit the model without the three way interaction model1-glm(y~aft+bft+cft+aft*bft+aft*cft+bft*cft,family=poisson,data=data) model1$deviance [1] 26.69039 model1$ual [1] 8 1-pchisq(model1$deviance, model1$ual) [1] 0.9 (b) Using the saturated model (the one with three-way interaction) • [2 marks] Let’s determine the log odds ratio


Document information

Uploaded on
January 16, 2023
Number of pages
13
Written in
2022/2023
Type
Exam (elaborations)
Contains
Questions & answers
$8.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Abbyy01
3.5
(13)
Sold
98
Followers
33
Items
1332
Last sold
2 months ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can immediately select a different document that better matches what you need.

Pay how you prefer, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card or EFT and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions

Whoops! We can’t load your doc right now. Try again or contact support.