Prepares data frame for input to 'mnlogit' for the stacked regression to obtain association parameters of the multidimensional LMA models corresponding to the GPCM. This function is called from 'fit.gpcm'. It generally would not run outside of 'fit.nominal' or 'ple.lma'.
StackDataGPCM(
Master,
item.log,
starting.sv,
npersons,
nitems,
ncat,
nless,
Maxnphi,
pq.mat,
LambdaNames,
PhiNames
)
Current master data frame
Current history of iterations from which currenat a parameters are drawn
Fixed category scores
Number of persons
Number of items
Number of categories
Number of unique lambdas
Number of estimated phi parameters
Array needed for rest-total scores
Names of lambdas in Master/Stacked data set
Names of phi parameters
stack.data Formats data for input to mnlogit to up-date phi parameters