varnames.lcm {lca}R Documentation

Create Parameter Labels for Latent Class Model

Description

Function to generate labels for parameter in a latent class model, especially when stored in object of class lcm.paramvec.

Usage

varnames.lcm(H, J, K)

Arguments

H number of latent classes.
J number of items.
K numeric vector of length J containing number of possible responses to each item.

Details

Given H, J and K, this creates labels theta.1 up to theta.H for latent class proportions, followed by eta.h.j.k for each other parameter.

Value

A character vector of labels, in the same format as used by lcm.paramvec.

Author(s)

Robin Evans

See Also

lca-package

Examples

varnames.lcm(2,3,c(2,2,2))

[Package lca version 0.2 Index]