This function computes bare-bones meta-analyses of any effect size using user-supplied effect error variances.
ma_generic(es, n, var_e, sample_id = NULL, wt_type = "sample_size",
conf_level = 0.95, cred_level = 0.8, conf_method = "t",
cred_method = "t", var_unbiased = TRUE, moderators = NULL,
cat_moderators = TRUE, moderator_type = "simple", hs_override = FALSE,
data = NULL, ...)
Vector or column name of observed effect sizes.
Vector or column name of sample sizes.
Vector or column name of error variances.
Optional vector of identification labels for samples/studies in the meta-analysis.
When TRUE
, program will use sample-size weights, error variances estimated from the mean effect size, maximum likelihood variances, and normal-distribution confidence and credibility intervals.
Type of weight to use in the meta-analysis: native options are "sample_size", and "inv_var" (inverse error variance). Supported options borrowed from metafor are "DL", "HE", "HS", "SJ", "ML", "REML", "EB", and "PM" (see metafor documentation for details about the metafor methods).
Confidence level to define the width of the confidence interval (default = .95).
Credibility level to define the width of the credibility interval (default = .80).
Distribution to be used to compute the width of confidence intervals. Available options are "t" for t distribution or "norm" for normal distribution.
Distribution to be used to compute the width of credibility intervals. Available options are "t" for t distribution or "norm" for normal distribution.
Logical scalar determining whether variances should be unbiased (TRUE
) or maximum-likelihood (FALSE
).
Matrix of moderator variables to be used in the meta-analysis (can be a vector in the case of one moderator).
Logical scalar or vector identifying whether variables in the moderators
argument are categorical variables (TRUE
) or continuous variables (FALSE
).
Type of moderator analysis ("none", "simple", or "hierarchical").
When TRUE, this will override settings for wt_type
(will set to "sample_size"),
conf_method
(will set to "norm"), cred_method
(will set to "norm"), and var_unbiased
(will set to FALSE
).
Data frame containing columns whose names may be provided as arguments to vector arguments and/or moderators.
Further arguments to be passed to functions called within the meta-analysis.
A list object of the classes psychmeta
, ma_generic
, and ma_bb
.
# NOT RUN {
es <- c(.3, .5, .8)
n <- c(100, 200, 150)
var_e <- 1 / n
ma_generic(es = es, n = n, var_e = var_e)
# }
Run the code above in your browser using DataLab