Description Usage Arguments Details Value Author(s) Examples
Given χ2 ~ χ2(df) the function calculates the p-value and visualizes the result as the area under the density function. Furthermore the mean and the values one and two standard deviations from the mean are highlighted.
1 | chisq_pval(chisq_value = 4, df = 1)
|
chisq_value |
The value of a test statistic with the underlying χ2 distribution (values that are very far away from the mean - roughly more than 4 times the standard deviation - are not recommend to use as the p-value will be approximately 0 or 1 anyways) |
df |
The degree of freedom of the underlying χ2 distribution (only df greater than 0). |
The p-value will be calculated by P(X>χ2) given X ~ χ2(df).
a ggplot2 object displaying the results
Emanuel Sommer
1 2 | chisq_pval()
chisq_pval(chisq_value = 23, df = 15)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.