corr_meta.Rd
This function does all of the steps in a single unified function.
corr_meta( data, n, type = c("average", "weighted", "simple"), missing = "remove", variable_names = NULL, ID = NULL, effect_size, var_cor, weights = NULL, moderators = NULL, random_params = NULL, structure = "CS", test = "t", intercept = FALSE, estimation_method = "REML", model = NULL, num_obs = NULL, ... )
data | Raw data input |
---|---|
n | Sample size |
type | type of adjustment (olkin siotani) |
missing | What to do with missing data |
variable_names | An optional character vector specifying variable names
of original data. This is mostly used to pass to |
ID | A variable name, as a character string, to use as names for the list elements. |
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 t-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 |
model | This is model syntax specified in the format by lavaan. |
num_obs | Number of observations |
... | Additional parameters passed to metafor. See |
See https://lavaan.ugent.be/ for more information on lavaan syntax.