Scaling is internal to the function 'fit.gpcm', which fits the GPCM version of the LMA. It imposes the required scaling identification constraint by transforming the conditional covariance matrix 'Phi.mat' to a conditional correlation matrix. The inverse transformation is applied to the current estimates of the slope or 'a' parameters. Category scale values are recomputed using the re-scale slopes (i.e., nu= a*x) and these are put back into the Master data set so that data are ready for the next iteration of the algorithm.
ScaleGPCM(
Master,
item.log,
Phi.mat,
PersonByItem,
npersons,
nitems,
ncat,
nless,
ntraits,
starting.sv,
item.by.trait
)
Master/main data set
Iteration history array, last row are current parameters
Current phi matrix
inData (response patterns)
Number of persons
Number of items
Number of categories
Number of unique lambdas (ncat-1)
Number of latent traits
Matrix of fixed category scores (nitems x ncat)
Object that indicates which trait item loads on
Master Master data set with re-scaled scale values
Phi.mat Re-scaled matrix of association parameters