loglikedw: Loglikelihood function

Description Usage Arguments Value Author(s) See Also Examples

View source: R/loglikedw.R

Description

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

Usage

1
loglikedw(par, x, zero = FALSE)

Arguments

par

the vector of parameters, q and β

x

the vector of sample values

zero

TRUE, if the support contains 0; FALSE otherwise

Value

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

Author(s)

Alessandro Barbiero

See Also

estdweibull

Examples

1
2
3
4
5
6
x <- c(1,1,1,2,2,2,2,2,2,3,4,4,5,6,8)
-loglikedw(c(0.8, 1), x) # loglikelihood function for q=0.8 and beta=1
-loglikedw(c(0.4, 2), x) # loglikelihood function for q=0.4 and beta=2
par <- estdweibull(x, "ML")# parameter estimates derived by the ML method
par
-loglikedw(par, x) # the maximum value of the loglikelihood function

DiscreteWeibull documentation built on May 2, 2019, 8:58 a.m.