chisqrprob
returns the upper tail probability for the given chi-square
statistic and degress of freedom.
Arguments
- x_val
the value of the chi-square statistic.
- df
the degrees of freedom.
Value
The upper tail probability for the chi-square distribution, and a
plot of the chi-square distribution with the statistic and more extreme
shaded.
Examples
chisqrprob(5, 3)
#> probability: 0.1718 \n