ranef.vicc: Extract the Random Effects

Description Usage Arguments Value Examples

View source: R/ranef_vicc.R

Description

Extract the group-specific parameter estimates.

Usage

1
2
## S3 method for class 'vicc'
ranef(object, cred = 0.9, ...)

Arguments

object

An object of class vicc

cred

Numeric. Credible interval width (defaults to 0.90).

...

Currently ignored.

Value

An array with the summarized parameters.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
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)

vICC documentation built on Dec. 8, 2020, 5:07 p.m.