fit_model | R Documentation |
This function is a wrapper that calls metafor to fit models.
fit_model(
data,
effect_size,
var_cor,
weights = NULL,
moderators = NULL,
random_params = NULL,
structure = "UN",
test = "z",
intercept = FALSE,
estimation_method = "REML",
...
)
data |
Raw data input |
effect_size |
A vector of observed effect sizes to be modeled with
metafor. See |
var_cor |
Variance covariance matrix of sampling errors or sampling weights
passed on to metafor. See |
weights |
Optional weights matrix passed to metafor. Default is NULL.
See |
moderators |
Moderators (covariates, predictors) to be included in the
analysis with metafor. Default is NULL meaning no predictors.
See |
random_params |
Specification of the random effect structure. This
argument takes the form a single sided formula. Default is NULL which
means a fixed effects model will be fitted with metafor.
See |
structure |
The variance structure passed to metafor. Default is "CS"
which represents compound symmetry. See |
test |
What type of test statistic should be used.
Default is a z-statistic. See |
intercept |
Should an intercept be included in the metafor model.
See |
estimation_method |
Estimation method to pass on to metafor. Default is
"REML". See |
... |
Additional parameters passed to metafor. See |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.