Learn R Programming

randomLCA (version 1.1-4)

ranef: Extract random effects from a randomLCA object

Description

Extracts the Empirical Bayes estimates of the random effects.

Usage

# S3 method for randomLCA
ranef(object, ...)

Value

A matrix with the first column containing the random effects and the second column the standard error of the random effects.

Arguments

object

randomLCA object with a random effect

...

additional argument; currently none is used.

Author

Ken Beath

Examples

Run this code
# \donttest{
pap.lca2random <- randomLCA(pap[, 1:10], freq = pap$Freq, random = TRUE, nclass = 2, cores = 1)
print(ranef(pap.lca2random))
# }

Run the code above in your browser using DataLab