Learn R Programming

psychmeta (version 0.2.4)

ma_generic: Bare-bones meta-analysis of generic effect sizes

Description

This function computes bare-bones meta-analyses of any effect size using user-supplied effect error variances.

Usage

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, ...)

Arguments

es

Vector or column name of observed effect sizes.

n

Vector or column name of sample sizes.

var_e

Vector or column name of error variances.

sample_id

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.

wt_type

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).

conf_level

Confidence level to define the width of the confidence interval (default = .95).

cred_level

Credibility level to define the width of the credibility interval (default = .80).

conf_method

Distribution to be used to compute the width of confidence intervals. Available options are "t" for t distribution or "norm" for normal distribution.

cred_method

Distribution to be used to compute the width of credibility intervals. Available options are "t" for t distribution or "norm" for normal distribution.

var_unbiased

Logical scalar determining whether variances should be unbiased (TRUE) or maximum-likelihood (FALSE).

moderators

Matrix of moderator variables to be used in the meta-analysis (can be a vector in the case of one moderator).

cat_moderators

Logical scalar or vector identifying whether variables in the moderators argument are categorical variables (TRUE) or continuous variables (FALSE).

moderator_type

Type of moderator analysis ("none", "simple", or "hierarchical").

hs_override

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

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.

Value

A list object of the classes psychmeta, ma_generic, and ma_bb.

Examples

Run this code
# 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