
Estimate Regression Coefficients from a Correlation Matrix
find_B.RdDeprecated. Use model_fit() for a model fitted to a single correlation
matrix or path_model() for a model fitted after meta-analytic synthesis.
Arguments
- model_input
Model input as a character string. Multiple models need to be on their own line. Regression syntax uses a lavaan-like
outcome ~ predictor1 + predictor2form.- R
A named correlation matrix, typically the pooled correlation matrix extracted from a fitted
marsobject.
Value
A list of named vectors of standardized regression coefficients, one
element per regression equation in model_input.
Details
Each regression line is parsed independently. For a statement such as
y ~ x1 + x2, the function reorders R into predictor and
outcome blocks and computes the standardized least-squares coefficients as
\(R_{xx}^{-1} R_{xy}\). Blank lines and comment lines are ignored by the
lower-level model parser.