schisq: The Chi-Squared Distribution

Description Usage Arguments Value See Also Examples

View source: R/chisq.R

Description

Descriptive statistics for the chi-squared (chi^2) distribution with df degrees of freedom.

Usage

1
2
schisq(df, statistic = c("all", "mean", "median", "sd", "var", "skew",
  "kurt"))

Arguments

df

degrees of freedom (non-negative, but can be non-integer).

statistic

desired descriptive statistic

Value

named numeric vector

See Also

Chisquare

https://en.wikipedia.org/wiki/Chi-squared_distribution

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
curve(dchisq(x, 1), xlim = c(0, 8))
schisq(1)

curve(dchisq(x, 2), xlim = c(0, 8))
schisq(2)

curve(dchisq(x, 3), xlim = c(0, 8))
schisq(3)

curve(dchisq(x, 4), xlim = c(0, 8))
schisq(4)

curve(dchisq(x, 6), xlim = c(0, 8))
schisq(6)

curve(dchisq(x, 9), xlim = c(0, 8))
schisq(9)

schuelkem/sdist documentation built on Nov. 5, 2019, 8:45 a.m.