Learn R Programming

vICC (version 1.0.0)

coef.vicc: Extract the Group-Specific Coefficients

Description

Extract the group-specific coefficients (fixed effect + random effect).

Usage

# S3 method for vicc
coef(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

Run this code
# NOT RUN {
Y <- flanker
# congruent trials
congruent <- subset(Y, 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")

coef(fit)

# }

Run the code above in your browser using DataLab