I am trying to perform a MCMCglmm
of the kind
df=data.frame(y=rep(c(0:2),each=12),x=rnorm(3*12))
MCMCglmm(data=df,fixed=y~x, family="categorical")
and I get the error message
For error structures involving catgeorical data with more than 2 categories pleasue use trait:units or variance.function(trait):units.
I had a quick look at Jarrod Hadfield's course notes but did not find much specification about this notation and its meaning.
What does the notations trait:units
and variance.function(trait):units
mean? How would one typically use them?
I welcome you to for example consider the command
m <- MCMCglmm(LetVerb ~ -1 + trait + trait:(Channel + CrSem + MS),
random = ~us(trait):Vinf, rcov = ~ us(trait):units, data = letting,
family = "categorical", prior = priors, verbose = TRUE, burnin =
10000, nitt = 60000, thin = 50)
from the third page of this tutorial