Re: [R] How to write random effect in MCMCglmm

2011-06-01 Thread Ben Bolker
Belle gmail.com> writes: > > Hi All, > > The data set that I have is a cluster data, and I want to run a HLM mixed > model with multi-level response. Here is my data set: > response: [snip] > library(MCMCglmm) > y <- MCMCglmm(factor(Level) ~ Type+factor(yr>=2006)+Male+Ethnicity+ELL+ > avgTra

[R] How to write random effect in MCMCglmm

2011-06-01 Thread Belle
Hi All, The data set that I have is a cluster data, and I want to run a HLM mixed model with multi-level response. Here is my data set: response: - Level (num: 1, 2, 3, 4, 5 - 5 levels) Covariates: - Type (Factor: A, B, C - 3 levels) - yr (num: 2006, 2007, ...) - Male (num: 0=not Male