mpcr | R Documentation |
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.
mpcr(X_vars, Y_vars, data=NULL, Cov, Means=NULL, numObs, pca=c("COV", "COR"),
pc_select=NULL, extraTries=50, ...)
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 |
... |
Additional arguments sent to either
|
A list of output with class MPCR
. It stores the model in
OpenMx objects. The fitted object is in the slot of mx.fit
.
Mike W.-L. Cheung <mikewlcheung@nus.edu.sg>
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
Nimon21
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.