Example R programs
- Week 1:
1-way ANOVA oneway.r
2-way ANOVA twoway.r
- Week 4:
Analysis of an Aitken model aitken.r.
- Week 5:
Plotting 2D likelihood and profile likelihood for the AR(1) model
lnLar1.r
Calculating profile likelihood for rho in an AR(1) model profile.r
- Week 6:
Fitting a Bernoulli logistic regression challenger.r
Confidence intervals for logistic regression coefficients (new code)
confint.r
Fitting a Binomial logistic or Poisson regression trout.r
- Week 6/7
Calculations with proportions prop.r
- Week 8: fitting a linear mixed effect model sdlwtLME.r
- Week 10: fitting a split plot model splitPlot.r
- Week 11: Inference for a linear mixed effect model SeedlingInference.r
Information from Ben Bolker
about what distributions are used by mcmcsamp mcmcsamp.txt
An edited discussion on inference in
lmer is here
- Week 11: BLUP's for random effects blup.r
- Week 11: Fitting a random coefficient regression model chute.r
- Week 11: Fitting repeated measures models asparagus.r
- Week 12: Fitting a GLMM or GEE deer.r
- Week 12: Fitting a GLMM or GEE with code for all the plots deer2.r
- Week 13: Fitting a nonlinear model nls.r
- Week 13: Fitting a nonlinear mixed model theoph.r
- Week 13: Penalized regression splines diabetes.r