Chi-square Goodness-of-Fit Test

DESCRIPTION:

This function is used by the One-sample Chi-square Goodness-of-Fit Test dialog.

USAGE:

menuChisqGof(data.x=NULL, x, n.classes=<<see below>>, 
             cut.points=NULL, n.param.est=0, 
             distribution="normal", print.object.p=T,  
             df1, df2, max, min, mean, sd, location, scale, 
             shape1, shape2, prob, size, k, m, n) 

REQUIRED ARGUMENTS:

x
numeric vector. NAs and Infs are allowed but will be removed.

OPTIONAL ARGUMENTS:

data.x
a data frame in which to interpret the variable named in x. If this is missing, then x must be a vector.
n.classes
the number of cells into which the observations are to be allocated. If the vector cut.points is supplied, then n.classes is set to length(cut.points) - 1.
cut.points
vector of cutpoints that define the cells. x[i] is allocated to cell j if cut.points[j] < x[i] <= cut.points[j+1]. If x[i] is less than or equal to the first cutpoint or greater than the last cutpoint, then x[i] is treated as missing. If the hypothesized distribution is discrete, cut.points must be supplied.
n.param.est
number of parameters estimated from the data.
distribution
character string that specifies the hypothesized distribution in the one sample test. For the two sample test, i.e. when y is specified, this argument is ignored. Possible values are: normal, beta, cauchy, chisquare, exponential, f, gamma, lognormal, logistic, t, uniform, weibull, binomial, geometric, hypergeometric, negbinomial, poisson.
print.object.p
if TRUE, the result of the test is printed.
df1
parameter of a distribution, when distribution is "chisquare", "f", or "t".
df2
parameter of a distribution, when distribution is "f".
max
parameter of a distribution, when distribution is "uniform".
min
parameter of a distribution, when distribution is "uniform".
mean
parameter of a distribution, when distribution is "exponential", "lognormal", "normal", "poisson".
sd
parameter of a distribution, when distribution is "normal", "lognormal".
location
parameter of a distribution, when distribution is "cauchy", "logistic".
scale
parameter of a distribution, when distribution is "cauchy", "logistic", "weibull".
shape1
parameter of a distribution, when distribution is "beta", "gamma", "weibull".
shape2
parameter of a distribution, when distribution is "beta".
prob
parameter of a distribution, when distribution is "binomial", "geometric", "negbinomial".
size
parameter of a distribution, when distribution is "binomial", "negbinomial".
k
parameter of a distribution, when distribution is "negbinomial".
m
parameter of a distribution, when distribution is "hypergeometric".
n
parameter of a distribution, when distribution is "hypergeometric".

VALUE:

a list of class "htest". See the help file for chisq.gof for details.

SEE ALSO:

, , .