Learn R Programming

DiscreteWeibull (version 1.1)

loglikedw3: Loglikelihood function

Description

Loglikelihood function (changed in sign) for the type 3 discrete Weibull distribution

Usage

loglikedw3(par, x)

Arguments

par
the vector of parameters, $c$ and $\beta$
x
the vector of sample values

Value

the value of the loglikelihood function (changed in sign) for the observed sample x under the parameters par

See Also

estdweibull3

Examples

Run this code
n <- 20
c <- 1/3
beta <- 2/3
x <- rdweibull3(n, c, beta)
par <- estdweibull3(x, "ML")
par
-loglikedw3(par, x)

Run the code above in your browser using DataLab