power.chisq | R Documentation |
Calculates power for the generic chi-square test with (optional) Type 1 and Type 2 error plots.
power.chisq.test(ncp, null.ncp = 0, df, alpha = 0.05,
plot = TRUE, verbose = TRUE, pretty = FALSE)
ncp |
non-centrality parameter for the alternative. |
null.ncp |
non-centrality parameter for the null. |
df |
integer; degrees of freedom. For example, for the test of independence df = (nrow - 1)*(ncol - 1). |
alpha |
type 1 error rate, defined as the probability of incorrectly rejecting a true null hypothesis, denoted as |
plot |
logical; |
verbose |
logical; whether the output should be printed on the console. |
pretty |
logical; whether the output should show Unicode characters (if encoding allows for it). |
power |
statistical power |
# power is defined as the probability of observing Chi-square-statistics
# greater than the critical value
power.chisq.test(ncp = 20, df = 100, alpha = 0.05)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.