Category Archives: Mixed Effects

Chapter 12 – Revised Script

Hi class,

Here is the final script for Chapter 12 (Chapter12_jtf_v2.r).  I made a few changes in class and after class, I figured out why I was confused about the QIC and yags.  It looks like yags (using QIC) and geeglm (using anova) come to different conclusions about whether to drop the interaction. The QIC says don’t, and the anova says do.  It’s hard to know if the problem is the software (yags vs geeglm) or the metric (likelihood ratio vs. QIC).

I think the bottom line on GEE is that it is very useful to try, especially if you can’t get just the right distribution to work.  It can mimic mixed effects (using intraclass correlation), can account for various other correlation structures (like AR1) and may be able to give you most of what you want.  I’d stick to the anova approach, unless you want to look at the references in detail.

Jack

Chapter 5 – Mixed Effect Models

Hi class –

Be sure to read the protocol that appears on page 90 for gls models, as Zuur uses it for mixed effect models in general.  A shorter version of it is in chapter 5 (bottom of p. 121).

Tomorrow we’ll start on Chapter 5 – Mixed Effects Models.  The main script I’ll be following is Chapter5_jtf.r .  I’ll also spend a little time simulating the M.lm and M2.lm models for the owls in the simulation script – Chapter5_Simulation.r .  This is the key chapter in the whole book, so be sure to ask questions if you don’t understand something.

Jack