R/ChiSquaredDistribution.R
ChiSquaredDataDistribution-class.Rd
Implements a chi-squared distribution. The classes Pearson2xk
and ZSquared
are subclasses, used in two different situations.
Pearson2xK
is used when testing k groups for homogeneity in
response rates. The null hypothesis is
r1=...=rk, and the
alternative is that there exists a pair of groups with differing rates.
ZSquared
implements the square of a normally distributed random variable
with mean \(\mu\) and standard deviation \(\sigma^2\).
number of degrees of freedom
outcome
vector of probabilities
sample size
distribution parameter
further optional arguments
object of class ChiSquared
number of simulation runs
random seed
see probability_density_function
and
cumulative_distribution_function
to evaluate the pdf
and the cdf, respectively.
datadist <- ChiSquared(df=4)