pchisqGC | R Documentation |
Shades desired areas under a specified chi-square curve, returns numerical value of the area.
pchisqGC(bound,region="above",df=NA,xlab="chi_square_statistic",graph=FALSE)
bound |
A numerical vector of length 1, indicating boundary of shaded region on horizontal axis |
region |
A character string. Possible values are "below" and "above" |
df |
Degrees of freedom of the chi-square distribution |
xlab |
Label for the horizontal axis |
graph |
produce graph? |
Numerical value of area under curve over region. Also plots the chi-square curve with the shaded area.
Homer White hwhite0@georgetowncollege.edu
#This gives P(X < 6.8) where X is chisq with 3 degrees of freedom:
pchisqGC(6.8,df=3,region="below")
#This gives P(X >= 6.8), where X is chisq with 3 degrees of freedom
pchisqGC(6.8,df=3,region="above")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.