loglikediw {DiscreteInverseWeibull} | R Documentation |
likelihood function
Description
Log-likelihood function of the discrete inverse Weibull
Usage
loglikediw(x, q, beta)
Arguments
x |
a vector of sample values |
q |
the value of the |
beta |
the value of the |
Value
the value of the log-likelihood function (changed in sign) of the discrete inverse Weibull distribution with parameters q
and \beta
computed on a sample x
See Also
Examples
n<-100
q<-0.4
beta<-2
x<-rdiweibull(n, q, beta)
# loglikelihood function (changed in sign) computed on the true values
loglikediw(x, q, beta)
par<-estdiweibull(x, method="H")
par
# loglikelihood function (changed in sign) computed on the ML estimates
loglikediw(x, par[1], par[2])
# it should be smaller than before...
[Package DiscreteInverseWeibull version 1.0.2 Index]