ChiES: Compute power for Chi Square Based on Effect Size Takes phi,...

View source: R/ChiES.R

ChiESR Documentation

Compute power for Chi Square Based on Effect Size Takes phi, degrees of freedom, and a range of sample sizes. Alpha is .05 by default, alternative values may be entered by user

Description

Compute power for Chi Square Based on Effect Size Takes phi, degrees of freedom, and a range of sample sizes. Alpha is .05 by default, alternative values may be entered by user

Usage

ChiES(phi, df, nlow, nhigh, by = 1, alpha = 0.05)

Arguments

phi

phi coefficient (effect size for 2x2)

df

degrees of freedom

nlow

starting sample size

nhigh

ending sample size

by

Incremental increase in sample (e.g. nlow = 10, nhigh = 24, by = 2, produces estimates of 10, 12, and 14)

alpha

Type I error (default is .05)

Value

Power for Chi Square Based on Effect Size

Examples

ChiES(phi=.3,df=1,nlow=10,nhigh=200,by=10, alpha = .01)

pwr2ppl documentation built on Sept. 6, 2022, 5:06 p.m.