
Add power
add_replication_power.RdEstimates the power of the replication study, given the original effect size, the sample size of the replication study, and a one-tailed ("greater") test.
Usage
add_replication_power(
fred_data,
es_original = "es_o",
N_replication = "n_r",
power_column = "power_r",
alpha = 0.05
)Details
For N_replication <= 2 (df <= 0), a correlation test cannot be
performed and power is returned as NA. For 2 < N_replication < 4
(i.e. n = 3, where df = 1 but Fisher's \(z\) approximation
requires \(n \ge 4\)), power is floored at alpha whenever a valid
original effect size (|r| < 1) is available.