chi2.gof | R Documentation |
Goodnes of fit test for distributions: normal, t-Student, cauchy, laplace, gamma, beta and betap (aka Beta Prime).
chi2.gof(x, dist="norm", lambda=1)
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 |
An object of class "htest" containing the following components:
estimates distribution parameters and loglik
the degrees of freedom and lambda parameter
statistic test value
p-value
estimate parameter in fitdist
.
Krzysztof Trajkowski
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.
pearson.test
ks.test
ad.test
vs.test
set.seed(2305)
g <- rnorm(120)
chi2.gof(g)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.