loglikediw: likelihood function

Description Usage Arguments Value See Also Examples

View source: R/loglikediw.R

Description

Log-likelihood function of the discrete inverse Weibull

Usage

1

Arguments

x

a vector of sample values

q

the value of the q parameter

beta

the value of the β parameter

Value

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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...


DiscreteInverseWeibull documentation built on May 19, 2017, 3:34 p.m.
Search within the DiscreteInverseWeibull package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.