hggamma {event}R Documentation

Log Hazard Function for a Generalized Gamma Process

Description

These functions provide information about the generalized gamma distribution with scale parameter equal to m, shape equal to s, and family parameter equal to f: log hazard. (See 'rmutil' for the d/p/q/r boxcox functions density, cumulative distribution, quantiles, and random generation).

The generalized gamma distribution has density

f(y) = \frac{\nu y^{\nu-1}} {(\mu/\sigma)^{\nu\sigma} Gamma(\sigma)} y^{\nu(\sigma-1)} \exp(-(y \sigma/\mu)^\nu)

where \mu is the scale parameter of the distribution, \sigma is the shape, and \nu is the family parameter.

\nu=1 yields a gamma distribution, \sigma=1 a Weibull distribution, and \sigma=\infty a log normal distribution.

Usage

hggamma(y, s, m, f)

Arguments

y

vector of responses.

m

vector of location parameters.

s

vector of dispersion parameters.

f

vector of family parameters.

Author(s)

J.K. Lindsey

See Also

dgamma for the gamma distribution, dweibull for the Weibull distribution, dlnorm for the log normal distribution.

Examples

hggamma(2, 5, 4, 2)

[Package event version 1.1.1 Index]