Description Usage Arguments Value Author(s) Examples
chi.probability
computes the probability which the Chi
of a given degree of freedom is greater than a specified value x
.
If x
is a vector, in which case the function will return a vector of probabilities of the components of x
. The plot
option if chosen to
be TRUE, then a plot of the density function of the Chi Squared
with degree of freedom df
will be created.
1 | chi.probability(x, df = 5, n = 1000, plot = FALSE)
|
x |
specifies the value that should be evaluated in the Chi Square distribution. |
df |
degrees of freedom in the Chi Square distribution |
n |
number of random numbers for evaluating the distribution |
plot |
specifies whether a plot should be created or not |
returns the probability that the Chi
greater than x
(area under the distribution which is greated than x
).
Nguyen Khanh Le Ho
1 | chi.probability(x= 5, df = 5, n = 1000, plot = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.