ss.lancova: Sample Size Planning for LANCOVA

Description Usage Arguments Value References Examples

View source: R/ss.lancova.R

Description

Compute the required per-group sample size for the LANCOVA test.

Usage

1
ss.lancova(k, rho_sqrd, r_sqrd, power = 0.8, alpha = 0.05)

Arguments

k

the number of groups.

rho_sqrd

the pretest-posttest correlation

r_sqrd

the expected explained variance by the model (on the logged scale)

power

the desired statistical power (default=.8)

alpha

the significance level (default=.05)

Value

n

the per-group sample size requirement

References

Cohen, J. (1988). Statistical power analysis for the behavioral sciences (2nd ed.). Hillsdale,NJ: Lawrence Erlbaum.

Examples

1
ss.lancova(3,.5,.01,.14,.05)

lamme documentation built on May 1, 2019, 7:32 p.m.