StackData {pleLMA} | R Documentation |
Prepares data for up-dating association parameters of a multidimensional nominal LMA
Description
Prepares data frame for input to 'mnlogit' for the stacked regression to obtain association parameters of the multidimensional LMA models corresponding to the Nominal item response model. This function is called from 'fit.nominal'. It generally would not run outside of either 'fit.nominal' or 'ple.lma'.
Usage
StackData(
Master,
item.log,
phi.log,
pq.mat,
npersons,
nitems,
ncat,
nless,
ntraits,
Maxnphi,
PhiNames,
LambdaNames
)
Arguments
Master |
Master data frame from which stacked data is created |
item.log |
Last row contains current scale values (item.history) |
phi.log |
Last row contains current estimates of phi |
pq.mat |
Summing array to get rest scores and totals |
npersons |
Number of persons |
nitems |
Number of items |
ncat |
Number of categories per item |
nless |
Number of categories less 1 (i.e., unique lambdas and unique nus) |
ntraits |
Number of latent traits |
Maxnphi |
Number of phis to be estimated |
PhiNames |
Names of the Phi parameters |
LambdaNames |
Names of lambdas that correspond to those in Master |
Value
Phi.mat Up-dated matrix of phi parameters
phi.log History of iterations for LogLike, Lambda and phi parameters