param.array {lca} | R Documentation |
Functions for writing Latent Class Parameters in different forms.
param.array(x, H = NULL, J = NULL, K = NULL, verbose = FALSE) param.vector(theta, eta)
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 . |
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.
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
.
Robin Evans