Description Usage Arguments Value See Also Examples
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.
1 | chisq.ppow(x, y = NULL, n, r = 10000, alpha = 0.05, conf.level = 0.95)
|
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. |
The probability of finding p < α with the experiment description.
chisq.pow
, chisq.ppow
, chisq.explore
, and chisq.pexplore
.
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.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.