RM.pwr.r.test: RM.pwr.r.test

Description Arguments Details References See Also Examples

View source: R/RM.pwr.r.test.R

Description

This function calculates the effective number of participants in a power analysis for simple regression after considering the effect of the number of measurement for each dependent variable and the intra-class correlation of these measurements.

Arguments

r

Pearson r effect size

sig.level

Alpha level

power

Desired statistical power

alternative

Select one of "two.sided", "greater" or "less"

corr

Intra-class correlation between the replicated measurements.

m

Number of replicated measurements.

Details

The function returns the effective number of participants to attain the specified statistical power. You do not need to specify that n is NULL. For more details about this statistical power adjustment, see Goulet & Cousineau (2019).

References

Goulet, M.A. & Cousineau, D. (2019). The power of replicated measures to increase statistical power. Advances in Methods and Practices in Psychological Sciences, 2(3), 199-213. DOI:10.1177/2515245919849434

See Also

pwr.r.test

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# Calculating the effective sample size for a simple regression.
# Intra-class correlation is .4 and number of replicated measurements is 8.

RM.pwr.r.test(
 r = .2, # Want to detect a Pearson's correlation of .2
 sig.level = .05,
 power = .95,
 alternative = "two.sided",
 corr = .4,
 m = 8
)

magoulet93/RM.pwr documentation built on May 5, 2020, 7:18 a.m.