Description Usage Arguments Details Value Author(s) References Examples
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 tests statistics T1 and T2 are 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 expressions of the statistics T1 and T2 are as follows:
T1=max(≤ft\frac{\breve{PGW}_w\overline{\breve{PGW}_w}}{sd(\breve{PGW}_w)}\right,≤ft\frac{\hat{MW}_w\overline{\hat{MW}_w}}{sd(\hat{MW}_w)}\right)
T2=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 7 8 9 10 11 12 13  x < rlnorm(50,.3)
#Apply some likelihood based tests
WLK.test(x,type="GG1",funEstimate="MLE",procedure="W")
WLK.test(x,type="PGW",funEstimate="ME",procedure="S")
WLK.test(x,type="MO",funEstimate="LSE",procedure="LR")
#Apply G to censored sample at right r=10
a< sort(x[1:40])
## Not run:
WLK.test(a,type="G",r=10)
## End(Not run)

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.