Learn R Programming

powerAnalysis (version 0.2.1)

power.chisq: Power calculations for chi-squared test

Description

Power calculations for chi-squared test

Usage

power.chisq(es = NULL, df = NULL, n = NULL, power = NULL, sig.level = NULL)

Arguments

es
effect size. A numeric value or output of ES.chisq.gof, ES.chisq.assoc
df
degree of freedom
n
total number of observations
power
power of study
sig.level
significance level

See Also

ES.chisq.gof

ES.chisq.assoc

power.plot.chisq

Examples

Run this code
## calculate power
power.chisq(es=0.16,df=1,n=530,sig.level=0.05)

## calculate sig.level
power.chisq(es=0.16,df=1,n=530,power=0.9576)

## calculate sample size
power.chisq(es=0.16,df=1,power=0.9576,sig.level=0.05)

## calculate effect size
power.chisq(df=1,n=530,power=0.9576,sig.level=0.05)

Run the code above in your browser using DataLab