pwr2ppl (version 0.1.1)

Chi2x2: Compute power for an Chi Square 2x2 Takes proportions for each group. Alpha is .05 by default, alternative values may be entered by user

Description

Compute power for an Chi Square 2x2 Takes proportions for each group. Alpha is .05 by default, alternative values may be entered by user

Usage

Chi2x2(r1c1, r1c2, r2c1, r2c2, n, alpha = 0.05)

Arguments

r1c1

Proportion of overall scores in Row 1, Column 1

r1c2

Proportion of overall scores in Row 1, Column 2

r2c1

Proportion of overall scores in Row 2, Column 1

r2c2

Proportion of overall scores in Row 2, Column 2

n

Total sample size

alpha

Type I error (default is .05)

Value

Power for 2x2 Chi Square

Examples

Run this code
# NOT RUN {
Chi2x2(r1c1=.28,r1c2=.22,r2c1=.38,r2c2=.12,n=100)
# }

Run the code above in your browser using DataCamp Workspace