organize_moderators: Organization of moderator data for use in meta-analyses

View source: R/ma_wrappers.R

organize_moderatorsR Documentation

Organization of moderator data for use in meta-analyses

Description

Organization of moderator data for use in meta-analyses

Usage

organize_moderators(
  cat_moderator_matrix,
  es_data,
  construct_x = NULL,
  construct_y = NULL,
  construct_order = NULL,
  moderator_levels = NULL,
  moderator_type = "hierarchical",
  cat_moderator_names = NULL,
  ...
)

Arguments

cat_moderator_matrix

Matrix (or vector) of categorical moderator variables.

es_data

Matrix of effect-size data to be used in meta-analyses.

construct_x

Vector of construct names for construct X.

construct_y

Vector of construct names for construct Y.

construct_order

The order in which constructs are to be arranged.

moderator_levels

List containing the factor levels of categorical moderator variables.

moderator_type

Type of moderator analysis: "none" means that no moderators are to be used, "simple" means that moderators are to be examined one at a time, "hierarchical" means that all possible combinations and subsets of moderators are to be examined.

cat_moderator_names

Vector of names for the variables in cat_moderator_matrix.

...

Further arguments.

Value

List containing (1) the full matrix of moderators and effect-size data for use in meta-analyses and (2) the names of the moderator variables.


jadahlke/psychmeta documentation built on Feb. 11, 2024, 9:15 p.m.