pchisqGC function

Graphical Calculator for Chi-Square Probabilities

Graphical Calculator for Chi-Square Probabilities

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)

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?

Returns

Numerical value of area under curve over region. Also plots the chi-square curve with the shaded area.

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")

Author(s)

Homer White hwhite0@georgetowncollege.edu

  • Maintainer: Homer White
  • License: GPL (>= 3)
  • Last published: 2020-06-15

Useful links