Skip to content
Prev 2894 / 20628 Next

year and site

On Sat, Sep 26, 2009 at 9:17 AM, hadley wickham <h.wickham at gmail.com> wrote:
As I'm sure you realize, Hadley, it is the effects that are random,
not the years.  If I have studied a particular location for the last
three years and I use a fixed-effect for the years in my model then I
can "predict" the response for any one of those three years that I
wish to.  But I have no information on which to base a prediction for
next year, which is usually what I want to do.  (I am assuming the
year is being modeled as a categorical variable rather than in terms
of trends.)

Using random effects for the year allows me to characterize the
variability between years and that does help me in characterizing the
variability for the next year.