Description Usage Arguments Value Author(s) Examples
Use Monte Carlo to generate a chi-squared distribution and calculate the p-value for the distribution.
1 | chi.probability(x, df, n)
|
x |
is the value for which the function calculate the p-value. x has to be numeric. |
df |
is the degrees of freedom by generating n number of random numbers for each variable. df has to be a positive integer. |
n |
is the number af random nubers for each variable. n has to be a positive integer. |
Returns the p-value for the chi-squared distribution.
Tobias Mortensen
Department of mathematics and computer science (IMADA)
University of southern Denmark, Odense
tomor14@student.sdu.dk
1 | chi.probability(x=15, df=19, n=10000)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.