Skip to contents

Deprecated. Use model_fit() for a model fitted to a single correlation matrix or path_model() for a model fitted after meta-analytic synthesis.

Usage

find_B(model_input, R)

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 + predictor2 form.

R

A named correlation matrix, typically the pooled correlation matrix extracted from a fitted mars object.

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.