mpcr {mulSEM} | R Documentation |
Multivariate Principal Component Regression (MPCR)
Description
It conducts a multivariate principal component regression analysis using the OpenMx package. Missing data are handled with the full information maximum likelihood method when raw data are available. It provides standard errors on the estimates.
Usage
mpcr(X_vars, Y_vars, data=NULL, Cov, Means=NULL, numObs, pca=c("COV", "COR"),
pc_select=NULL, extraTries=50, ...)
Arguments
X_vars |
A vector of characters of the X variables. |
Y_vars |
A vector of characters of the Y variables. |
data |
A data frame of raw data. |
Cov |
A covariance or correlation matrix if |
Means |
An optional mean vector if |
numObs |
A sample size if |
pca |
Whether the principal component analysis is based unstandardized |
pc_select |
PCs selected in the regression analysis. For example,
|
extraTries |
This function calls |
... |
Value
A list of output with class MPCR
. It stores the model in
OpenMx objects. The fitted object is in the slot of mx.fit
.
Author(s)
Mike W.-L. Cheung <mikewlcheung@nus.edu.sg>
References
Gu, F., & Cheung, M. W.-L. (2023). A Model-based approach to multivariate principal component regression: Selection of principal components and standard error estimates for unstandardized regression coefficients. British Journal of Mathematical and Statistical Psychology, 76(3), 605-622. https://doi.org/10.1111/bmsp.12301