effective: effective

Description Usage Arguments Details References Examples

View source: R/effective.R

Description

This function calculates the effective number of participants in a power analysis. It is useful for simulations, but also if you have done a power analysis in G*Power and want to calculate the effective number of participants base on the n1 provided in G*Power.

Usage

1
effective(n1 = NULL, corr = NULL, m = NULL, ...)

Arguments

n1

Number of participants if the measurement is only replicated once.

corr

Intermeasurement correlation (intraclass correlation)

m

Number of times the measurement is replicated.

Details

The function returns the effective number of participants. 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

Examples

1
2
3
4
5
6
7
# What is the effective number of participants if n1 = 100, intra-class correlation is .3 and
# the number of replicated measurements is 20?
effective(
 n1=100,
 corr=.2,
 m = 20
)

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