Learn R Programming

psychmeta (version 0.2.4)

organize_database: 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, construct_x = NULL,
  construct_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.

construct_x

Vector of construct names for construct initially designated as X.

construct_y

Vector of construct 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