Discrete choice model (conditional multinominal logistic regression model) is fit to stacked data to up-date the matrix of association parameters of the LMA that corresponds to the nominal item response model. This is a function internal to 'fit.nominal' and is used for multi-dimensional models. The function is similar to 'fit.StackGPCM'. This function is unlikely to be run outside of 'fit.nominal' or 'ple.lma'.
FitStack(
Master,
item.log,
phi.log,
fstack,
TraitByTrait,
pq.mat,
npersons,
nitems,
ncat,
nless,
ntraits,
Maxnphi,
PhiNames,
LambdaNames
)
Master data set from which stacked data is created
Last row contains current scale values (item.history)
Last row contains current estimates of phi
Formula for stacked regression
inTraitAdj matrix
Summing array to get rest scores and totals
Number of persons
Number of items
Number of categories per item
Number of categories less 1 (unique lambdas & unique nus)
Number of latent traits
Number of phis to be estimated
Names of the Phi parameters
Names of lambdas that correspond to those in Master
Phi.mat Matrix of up-dated estimates of assocation (phi) parameters
phi.log History of iterations log likelihood and estimates of lambda and phi parameters