The Take Home Midterm 3 was made available on Friday, May 2th, 2014 and was due on May 16th, 2014.

The following is the text framing the midterm examination:

Exam 3

Statistics 426

Due May 16, 2014This exam will involve analysis of the

bacteriadataset from theMASSpackage, to answer some speciﬁc questions that are listed below. Guidelines are given on how to prepare your document, and you should imagine this is a report done for some professional purpose. A substantial part of the scoring will be due to how well your procedures and results are communicated.Keep in mind, this is an exam and there can be absolutely no collaboration or discussion of your analysis or report with other students, or anyone else.The aim is to model the presence of the bacteria H. inﬂuenzae in children with a middle ear infection in the Northern Territory of Australia. Speciﬁcally, the aims are listed below:

- Fit regression models to uncover treatment eﬀects on presence of H. inﬂuenzae, that consider possible eﬀects due to treatment compliance and the timing of the test (week).
- Perform this analysis using generalized linear mixed models, generalized estimating equations, and transition models. Compare and contrast the three approaches, and state how they compare with regard to estimated treatment eﬀects. Note that for transition models, some work might need to be done to get the dataset in shape to run with the glm() function.

Outline for reports

IntroductionDo a little reading so you can give some background information on the bacteria and otitis media. Paraphrase the main objectives of your analysis.The DataProvide some summaries of your data, search for outliers and consider what to do with them in your analyses.MethodsDiscuss your methods for developing your models, such as variable coding, utilization of interactions (if needed), selection of covariance structure (in gee case), and so forth.ResultsShow the results and details of the ﬁtted regression models in appropriate tables and possibly any relevant graphs. Provide an interpretation of the results and a comparison of the three techniques for modeling (gee, glmm,transition).SummaryGive a very brief summary of what you have found in a non-technical mannerAppendixProvide the R-code that you used to conduct your analysis.

The solution posted here is the exam that I turned in on the due date.

The Midterm 3 solution for STAT 426 can be found here: STAT 426 Midterm 3 (PDF)

The file is created using knitr, which allows R code to be intertwined by LaTeX:

STAT 426 Midterm 3 (RNW)