pchisqGC {tigerstats} | R Documentation |
Graphical Calculator for Chi-Square Probabilities
Description
Shades desired areas under a specified chi-square curve, returns numerical value of the area.
Usage
pchisqGC(bound,region="above",df=NA,xlab="chi_square_statistic",graph=FALSE)
Arguments
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? |
Value
Numerical value of area under curve over region. Also plots the chi-square curve with the shaded area.
Author(s)
Homer White hwhite0@georgetowncollege.edu
Examples
#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")
[Package tigerstats version 0.3.2 Index]