Learn R Programming

DiscreteInverseWeibull (version 1.0.2)

estdiweibull: Estimation of parameters

Description

Sample estimation of the parameters of the discrete inverse Weibull distribution

Usage

estdiweibull(x, method="P", control=list())

Arguments

x
a vector of sample values
method
the estimation method that will be carried out: "P" method of proportion, "M" method of moments, "H" heuristic-maximum likelihood method, "PP" graphical method-probability plot
control
a list of additional parameters: eps, nmax for the method of moments; beta1, z, r, Leps for the heuristic method

Value

a vector containing the two estimates of $q$ and $\beta$

Details

For a description of the methods, have a look at the reference. Note that they may be not applicable to some specific samples. For examples, the method of proportion cannot be applied if there are no 1s in the samples; it cannot be applied for estimating $\beta$ if all the sample values are $\leq 2$. The method of moments cannot be applied for estimating $\beta$ if all the sample values are $\leq 2$; besides, it may return unreliable results since the first and second moments can be computed only if $\beta>2$. The heuristic method cannot be applied for estimating $\beta$ if all the sample values are $\leq 2$.

See Also

heuristic, Ediweibull

Examples

Run this code
n<-100 
q<-0.5 
beta<-2.5
# generation of a sample
x<-rdiweibull(n, q, beta)
# sample estimation through each of the implemented methods
estdiweibull(x, method="P") 
estdiweibull(x, method="M")
estdiweibull(x, method="H")
estdiweibull(x, method="PP")

Run the code above in your browser using DataLab