Skip to contents

Ensure that all original effects are coded as positive, and that replication effects are coded in the same direction (so that they would be positive if successful). Rows where es_original is 0 or NA have no defined direction, so their es_replication value is preserved as-is rather than zeroed out or set to NA.

Usage

align_effect_direction(
  fred_data,
  es_original = "es_o",
  es_replication = "es_r"
)

Arguments

fred_data

FReD dataset

es_original

Character. Name of original effect size column.

es_replication

Character. Name of replication effect size column.

Value

Augmented FReD dataset with aligned effect directions.