Category Archives: R-scripts

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

R Script for Chapter 4

Hi,

Here is today’s script: Chapter4_jtf.r .   Be careful of the identify command.  You are supposed to click on the point you want to identify (the outlier) and then press the “Finish” button in the upper left corner of the plot window.  It will then tell you which record is the outlier (it should be 26).

Also, I didn’t get to it, but I have a script to simulate  a dataset for chapter 4 ( Chapter4_Simulation.r ).  Run through it, if you want.

Jack