polycormat_mle: Maximum likelihood estimation of polychoric correlation matrix
Description
A useful wrapper of polycor_mle to estimate a polychoric correlation matrix via maximum likelihood by calculating all unique pairwise polychoric correlation coefficients.
If return_polycor = TRUE, returns a list with a polychoric correlation matrix and list of "polycor" objects. If return_polycor = FALSE, then only a correlation matrix is returned.
Arguments
data
Data matrix or data.frame of integer-valued responses, individual respondents are in rows and responses to the items in the columns.
parallel
Logical. Shall parallelization be used? Default is FALSE.
num_cores
Number of cores to be used, only relevant if parallel = TRUE. Defaults to the number of system cores.
return_polycor
Logical. Shall the individual "polycor" objects for each item pair estimate be returned? Deafult is TRUE.
variance
Shall an estimated asymptotic covariance matrix be returned? Default is TRUE.
constrained
Shall strict monotonicity of thresholds be explicitly enforced by linear constraints?
method
Numerical optimization method.
maxcor
Maximum absolute correlation (to ensure numerical stability).
tol_thresholds
Minimum distance between consecutive thresholds (to enforce strict monotonicity); only relevant if constrained = TRUE.