Find regression coefficients
Usage
find_reg_coef(model_input, R, ...)
Arguments
- model_input
Model input as a character string. Multiple models need
to be on their own line. See details for specification.
- R
A correlation matrix, most likely this will be the average
correlation matrix outputted from the metafor package.
- ...
Currently not used
Value
A vector of regression coefficient estimates.
Examples
R <- matrix(c(1, .40, .30,
.40, 1, .50,
.30, .50, 1), 3, 3,
dimnames = list(c("x1", "x2", "y"), c("x1", "x2", "y")))
find_reg_coef("y ~ x1 + x2", R)
#> [[1]]
#> x1 -> y x2 -> y
#> 0.1190476 0.4523810
#>