Log-likelihood function of the discrete inverse Weibull
loglikediw(x, q, beta)
Arguments
x: a vector of sample values
q: the value of the q parameter
beta: the value of the β parameter
Returns
the value of the log-likelihood function (changed in sign) of the discrete inverse Weibull distribution with parameters q and β computed on a sample x
See Also
heuristic
Examples
n<-100q<-0.4beta<-2x<-rdiweibull(n, q, beta)# loglikelihood function (changed in sign) computed on the true valuesloglikediw(x, q, beta)par<-estdiweibull(x, method="H")par
# loglikelihood function (changed in sign) computed on the ML estimatesloglikediw(x, par[1], par[2])# it should be smaller than before...