Skip to content
Prev 13123 / 20628 Next

transform glmer model into MCMCglmm: how to define the priors?

Dear Jarrod,
thank you so much for your quick reply and the prior which
finally got me started on a working model:

k <- length(levels(imp$form))
IJ <- (1/k) * (diag(k-1) + matrix(1, k-1, k-1))

prior<-list(
  R=list(V=IJ, fix=1),
  G=list(
    G1=list(V=diag(2), nu=2, alpha.mu=c(0,0),
   alpha.V=diag(2)*1000),
    G2=list(V=diag(2), nu=2, alpha.mu=c(0,0),
alpha.V=diag(2)*1000)))


model1 <- MCMCglmm(form~trait:frequency+trait:recency+
                 trait:year-1,
                 random=~us(trait):author+us(trait):verb, 
                 rcov=~us(trait):units,
                 prior=prior,
                 data=imp, family="categorical",)

The summary problem unfortunately remains the same. I have
attached the data and R script and hope that you (or
someone else on the list) can figure this out.

Thanks a lot!

Best, Anne

On Wed, 18 Mar 2015 06:18:50 +0000
Jarrod Hadfield <j.hadfield at ed.ac.uk> wrote:
____________________________________

Anne Krause
Research Training Group GRK DFG 1624
"Frequency Effects in Language"
University of Freiburg
Belfortstra?e 18
79098 Freiburg

Phone: 0761/203-97670
frequenz.uni-freiburg.de/krause