ranef.vicc {vICC} | R Documentation |
Extract the group-specific parameter estimates.
## S3 method for class 'vicc'
ranef(object, cred = 0.9, ...)
object |
An object of class |
cred |
Numeric. Credible interval width (defaults to |
... |
Currently ignored. |
An array with the summarized parameters.
flanker <- vICC::flanker
# congruent trials
congruent <- subset(flanker, cond == 0)
# subset 25 from each group
dat <- congruent[unlist(tapply(1:nrow(congruent),
congruent$id,
head, 25)), ]
# fit model
fit <- vicc(y = dat$rt,
group = dat$id,
iter = 250,
burnin = 10,
type = "customary")
ranef(fit)