testg: Goodness of Fit Tests

Description Usage Arguments Value Author(s) References Examples

Description

Performs the Anderson-Darlin and Cramer-von Mises tests

Usage

1
2
3
4
ad.testg(x,cdf)
cvm.testg(x,cdf)

cvm.testg(x, cdf)

Arguments

x

a numeric vector of data values, the number of which must be greater than 7. Missing values are allowed.

cdf

cumulative distribution function.

Value

A list with class "htest" containing the following components:

statistic the value of the test statistic.

p.value the p-value for the test.

method a character string indicating what type of likelihood ratio test was performed.

data.name a character string giving the name(s) of the data

Author(s)

Manoel Santos-Neto manoel.ferreira@ufcg.edu.br, F.J.A. Cysneiros cysneiros@de.ufpe.br, Victor Leiva victorleivasanchez@gmail.com and Michelli Barros michelli.karinne@gmail.com

References

Stephens, M.A. (1986): Tests based on EDF statistics. In: D'Agostino, R.B. and Stephens, M.A., eds.: Goodness-of-Fit Techniques. Marcel Dekker, New York.

Thode Jr., H.C. (2002): Testing for Normality. Marcel Dekker, New York.

Chen, G., Balakrishnan, N. (1995) A general purpose approximate goodness-of-fit test, J. Quality Technol., v. 27, 154-161.

Barros, M., Leiva, V., Ospina, R. ; Tsuyuguchi, A.B. (2014) Goodness-of-fit tests based on the Birnbaum-Saunders distribution for censored reliability data analysis. IEEE Transactions on Reliability, v. 63, p. 543/554.

Examples

1
2
3
4
5
6
7
x<- rRBS(1000)
fit <- gamlss::gamlss(x~1,family=RBS(mu.link='log',sigma.link='identity'),method=CG())
mu<- exp(fit$mu.coefficients) ; mu
sigma <- fit$sigma.coefficients ; sigma
cdf <- function(x) pRBS(x,mu,sigma)
ad.testg(x,cdf)
cvm.testg(x,cdf)

santosneto/RBS documentation built on Feb. 5, 2021, 2:12 p.m.