chisq.ppow: Compute the power using a chi-squared test by bootstrapping...

Description Usage Arguments Value See Also Examples

Description

chisq.ppow computes (via simulation) the power of an experiment that will be analyzed using a chi-square test by bootstrapping pilot data. This function directly calls chisq.pow but is included to maintaing consistency with other power functions in the package.

Usage

1
chisq.ppow(x, y = NULL, n, r = 10000, alpha = 0.05, conf.level = 0.95)

Arguments

x

a list containing count data of pilot observations.

y

an optional list with the count observations of a second group.

n

sample size.

r

number of simulations to compute power.

alpha

significance threshhold.

conf.level

size of confidence intervals.

Value

The probability of finding p < α with the experiment description.

See Also

chisq.pow, chisq.ppow, chisq.explore, and chisq.pexplore.

Examples

1
2
chisq.ppow(x=c(3, 5, 2), n=32) # Chi-squared distribution against chance with 32 observations.
chisq.ppow(x=c(2, 2, 2), y=c(8, 14, 1)) # Compare both group with 16 observations in each group.

julianje/mcpa documentation built on May 13, 2019, 6:14 p.m.