Computes the Weibull GoF tests based on the three following statistics: the score, Wald and likelihood ratio GoF tests. These tests include the Weibull distribution in larger statistics and apply a parametric test to the additional parameter.
1 
x 
a numeric vector of data values. 
type 
the type of the test statistic used:

funEstimate 
the method used to estimate the two Weibull parameters. "MLE" is the default used method based on the Maximum Likelihood Estimators, "LSE" for the Least Squares Estimators and "ME" for the Moment Estimators. 
procedure 
the procedure used as a default is the score "S". The procedure can be either "W" for the Wald test or "LR" for the test based on the likelihood ratio procedure. 
nsim 
an integer specifying the number of replicates used in Monte Carlo. 
r 
an integer specifying the number of right censored observations. 
The tests are based on different generalized Weibull families: the tests (GG1) and (GG2) are based on the Generalized Gamma distribution, the tests (EW) are based on the Exponentiated Weibull, (PGW) on the Power Generalized Weibull, (MO) on the MarshallOlkin distribution and (MW) are based on the Modified Weibull distribution. Each family can have nine versions depending on the procedure used (score, Wald or likelihood ratio statistic) and on the parameters estimation methods: maximum likelihood, moment or least squares method, except GG1 which has only three versions using the maximum likelihood estimators.
The test statistics T is a combination between two Wald test statistics: PGW with ME (\breve{PGW}_w) and MW with MLE (\hat{MW}_w) after they are centered with their mean values (\overline{\breve{PGW}}_w and \overline{\hat{MW}}_w) and normalized by their standard deviations (respectively sd(\breve{PGW}_w) and sd(\hat{MW}_w)).
The expression of the statistic T is as follows:
T=0.5≤ft\frac{\breve{PGW}_w\overline{\breve{PGW}_w}}{sd(\breve{PGW}_w)}\right+0.5≤ft\frac{\hat{MW}_w\overline{\hat{MW}_w}}{sd(\hat{MW}_w)}\right
All the previous tests can be applied to type II right censored samples (simple censoring). The censoring is introduced in the MLEs. A second statistic G similar to T, is combining Wald and likelihood ratio tests based on the Generalized Gamma distribution:
G=0.5≤ft\frac{\hat{GG}^1_l\overline{\hat{GG}^1_l}}{sd(\hat{GG}^1_l)}\right+0.5≤ft\frac{\hat{GG}^1_w\overline{\hat{GG}^1_w}}{sd(\hat{GG}^1_w)}\right
An object of class htest.
Meryam KRIT
Krit M., Gaudoin O., Xie M. and Remy E., Simplified likelihood goodnessoffit tests for the Weibull distribution, Communications in Statistics  Simulation and Computation.
1 2 3 4 5 6 
Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.
All documentation is copyright its authors; we didn't write any of that.