pchisqGC: Graphical Calculator for Chi-Square Probabilities

Description Usage Arguments Value Author(s) Examples

View source: R/pchisqGC.R

Description

Shades desired areas under a specified chi-square curve, returns numerical value of the area.

Usage

1
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

1
2
3
4
5
#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")

homerhanumat/tigerstats documentation built on Sept. 27, 2020, 3:21 a.m.