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

Description Usage Arguments Value Examples

View source: R/ChiES.R

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

1
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

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

Example output

     n  Power
1   10 0.0521
2   20 0.1086
3   30 0.1755
4   40 0.2487
5   50 0.3247
6   60 0.4005
7   70 0.4737
8   80 0.5428
9   90 0.6065
10 100 0.6643
11 110 0.7159
12 120 0.7613
13 130 0.8009
14 140 0.8349
15 150 0.8640
16 160 0.8886
17 170 0.9092
18 180 0.9263
19 190 0.9405
20 200 0.9522

pwr2ppl documentation built on April 4, 2021, 9:06 a.m.