Learn R Programming

bayesCureRateModel (version 1.5)

log_dagum: PDF and CDF of the Dagum distribution

Description

The Dagum distribution as evaluated at the VGAM package.

Usage

log_dagum(y, a1, a2, a3, c_under = 1e-09)

Value

A list containing the following entries

log_f

natural logarithm of the pdf, evaluated at each datapoint.

log_F

natural logarithm of the CDF, evaluated at each datapoint.

Arguments

y

observed data

a1

scale parameter

a2

shape1.a parameter

a3

shape2.p parameter

c_under

A small positive value corresponding to the underflow threshold, e.g. c_under = 1e-9.

Author

Panagiotis Papastamoulis

Details

The Dagum distribution is a special case of the 4-parameter generalized beta II distribution.

References

Thomas W. Yee (2015). Vector Generalized Linear and Additive Models: With an Implementation in R. New York, USA: Springer.

See Also

ddagum

Examples

Run this code
log_dagum(y = 1:10, a1 = 1, a2 = 1, a3 = 1, c_under = 1e-9)

Run the code above in your browser using DataLab