param.array {lca}R Documentation

Manipulate Latent Class Model Parameters

Description

Functions for writing Latent Class Parameters in different forms.

Usage

param.array(x, H = NULL, J = NULL, K = NULL, verbose = FALSE)
param.vector(theta, eta)

Arguments

x a vector of class lcm.paramvec
H number of latent classes.
J number of items.
K numeric vector containing number of responses to each item.
verbose logical - if TRUE then automatic choices for H, J and K are explained.
theta a vector of latent class proportions.
eta a object of class lcm.params.

Details

param.array takes a vector of class lcm.paramvec and returns a list containing the latent class proportions theta and the other parameters as an object eta of class lcm.params.

If any of H, J or K are not specified, the function attempts to infer them from the names of elements (or columns) of x.

param.vector does the opposite operation.

Value

param.array returns a list containing

theta vector of latent class proportions;
eta object of class lcm.params.
param.vector returns a vector of class lcm.paramvec.

Author(s)

Robin Evans

See Also

lca-package


[Package lca version 0.2 Index]