Fit factor models for ordinal data with pairwise likelihood methods
Source:R/fit_plFA.R
fit_plFA.RdFit latent variable models for ordinal variable using pairwise likelihood methods running via quasi-Newton BFGS or stochastic approximations.
Arguments
- DATA
Integer data matrix of dimension \(n*p\). Categories must be coded starting from zero.
- CONSTR_LIST
List of constraints. It must contain
CONSTRMAT\(p*q\)-dimensional matrix. Elements set to NArefers to free loading parameters. Elements set to numerical values denote fixed values constraints.CONSTRVAR\(q\)-dimensional vector. Elements set to NArefers to free latent variance parameters. Elements set to numerical values denote fixed values constraints.CORRFLAGLogical indicator. Set it to FALSEif the latent variables are assumed to be independent. Set itTRUEotherwise.STDLVLogical indicator. Set it to TRUEto fix latent variables scale. Set itFALSEto fix loadings scale.LLCLinear loadings constraints. Expects a list of constraints. See DETAILS. - METHOD
Label for the method chosen. Possible values are:
'ucminf'for estimation via the quasi-Newton BFGS optimiser from the ucminfpackage. Used as default method.'SA'for estimation via Stochastic Approximations. - INIT_METHOD
'custom'Uses the vector provided via INITas starting point.'standard'Uses cold initialisation where loadings are initialised at 0.5and the latent covariance matrix as an Identity matrix.'SA'Computes the starting point using a short chain of stochastic updates. Updates start from the standardinitialisation point. Set as default method.- NCORES
Integer value setting the number of threads to carry out the estimation.
- VALDATA
Validation data used to monitor convergence of stochastic approximations. If
NULL, data passed viaDATAis used for monitoring purposes.- CONTROL
List of control options to pass to
ucminf. See ucminf::ucminf documentation.- CPP_CONTROL_MAIN
List of control options to pass to the
SAoptimiser whenMETHOD="SA":PAIRS_PER_ITERATIONNumber of pairs to draw at each iteration. MAXTMaximum number of iterations. BURNMaximum number of iterations to burn before trajectory averaging. STEP0Initial step length. - CPP_CONTROL_INIT
List of control options to pass to the
SAoptimiser whenINIT_METHOD="SA". SeeCPP_CONTROL_MAINfor details.- INIT
Initialising vector. If not provided, the starting point is computed according to
INIT_METHOD- VERBOSE
TRUEfor verbose output
Details
The argument CONSTR_LIST$LLC is expected to be a list of constraints,
e.g. CONSTR_LIST$LLC <- list(constraint_1, constraint2, ...), where each
constraint is defined by a list itself. For example, to impose the
constraint "L_(2,1)=0.5L_(5,2)+0.25L_(9,3)" you have to write constraint_1 <- list(c(2,1), c(0.5,5,2), c(0.25, 9,3)). That is: the first vector of the
list is 2-dimensional and stores the coordinates of the constrained loading.
Each of the successive triplets represent a linear coefficient followed by
the coordinates of the loading of reference. You can set up an arbitrary
number of triplets in each constraint.