

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


22S:166 Computing in Statistics Fall 2007, Instructor: Cowles Final exam Fall 2008: PRACTICE PROBLEMS for FINAL Name: ___________________________________________________________ 4-letter or 4-digit code for posting grade (must not be part of your student id or Social Security number!): _________ Copy your code, output, and any other required answers for each question into a text document. Type your name and your code at the top of the document. Submit your exam by uploading the text file into ICON.
glm.out <- glm( poisdat ~ 1, family = poisson()) mymle <- glm.out$coefficients Use R to produce 90% confidence intervals for the log of the population mean, using three different methods: a. asymptotic normal approximation (use the confint.default function) b. a more exact confidence interval (use the confint function) c. a parametric bootstrap percentile interval (use the boot and boot.ci functions). Copy your interactive R code and its output for parts a. and b. For part c., submit all your R functions and the output for a parametric bootstrap run with 1000 datasets. Note: If you are unable to code a parametric bootstrap procedure, you may do a nonparametric bootstrap instead for some partial credit.