chi2.gof: The Cressie-Read test for continuous data.

View source: R/chi2.gof.R

chi2.gofR Documentation

The Cressie-Read test for continuous data.

Description

Goodnes of fit test for distributions: normal, t-Student, cauchy, laplace, gamma, beta and betap (aka Beta Prime).

Usage

chi2.gof(x, dist="norm", lambda=1)

Arguments

x

a numeric vector of values.

dist

names distributions: norm (deflaut), t-Student, cauchy, laplace, gamma, beta and betap (aka Beta Prime).

lambda

numeric parametr

Value

An object of class "htest" containing the following components:

estimate

estimates distribution parameters and loglik

parameter

the degrees of freedom and lambda parameter

statistic

statistic test value

p.value

p-value

Note

estimate parameter in fitdist.

Author(s)

Krzysztof Trajkowski

References

Noel Cressie and Timothy R. C. Read (1984). Multinomial Goodness-of-Fit Test. Journal of the Royal Statistical Society. Series B (Methodological), Vol. 46, No. 3 (1984), 440-464.

See Also

pearson.test ks.test ad.test vs.test

Examples

set.seed(2305)
g <- rnorm(120)
chi2.gof(g)

krzysiektr/CressieReadTest documentation built on April 3, 2024, 11:01 p.m.