organize_database: Organize a database of multi-construct or moderated...

View source: R/wrangle_data.R

organize_databaseR Documentation

Organize a database of multi-construct or moderated information

Description

Organize a database of multi-construct or moderated information

Usage

organize_database(
  es_data,
  sample_id = NULL,
  citekey = NULL,
  construct_x = NULL,
  construct_y = NULL,
  facet_x = NULL,
  facet_y = NULL,
  measure_x = NULL,
  measure_y = NULL,
  data_x = NULL,
  data_y = NULL,
  moderators = NULL,
  use_as_x = NULL,
  use_as_y = NULL,
  construct_order = NULL,
  cat_moderators = TRUE,
  moderator_levels = NULL
)

Arguments

es_data

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

sample_id

Optional vector of identification labels for studies in the meta-analysis.

citekey

Optional vector of bibliographic citation keys for samples/studies in the meta-analysis (if multiple citekeys pertain to a given effect size, combine them into a single string entry with comma delimiters (e.g., "citkey1,citekey2").

construct_x

Vector of construct names for construct initially designated as X.

construct_y

Vector of construct names for construct initially designated as Y.

facet_x

Vector of facet names for construct initially designated as X.

facet_y

Vector of facet names for construct initially designated as Y.

data_x

Additional data (e.g., artifact information) specific to the variables originally designated as X.

data_y

Additional data (e.g., artifact information) specific to the variables originally designated as Y.

moderators

Matrix, dataframe, or vector of moderators.

use_as_x

Vector of construct names to be categorized as X constructs - cannot overlap with the contents of 'use_as_y'.

use_as_y

Vector of construct names to be categorized as Y constructs - cannot overlap with the contents of 'use_as_x'.

construct_order

Vector indicating the order in which variables should be arranged, with variables listed earlier in the vector being preferred for designation as X.

cat_moderators

Logical vector identifying whether each variable in moderators is a categorical variable (TRUE) or a continuous variable (FALSE).

moderator_levels

Optional list of factor levels to be applied to the categorical moderators.

Value

A reorganized list of study data


psychmeta documentation built on Aug. 26, 2022, 5:14 p.m.