perksmake: Distribution function of the Perks-Makeham distribution

pperksmakeR Documentation

Distribution function of the Perks-Makeham distribution

Description

Distribution function of the Perks-Makeham distribution

Density function of the Perks-Makeham distribution

Hazard function of the Perks-Makeham distribution

Quantile function of the Perks-Makeham distribution

Usage

pperksmake(
  q,
  rate = 1,
  shape = 1,
  lambda = 0,
  lower.tail = TRUE,
  log.p = FALSE
)

dperksmake(x, rate = 1, shape = 1, lambda = 0, log = FALSE)

hperksmake(x, rate = 1, shape = 1, lambda = 0, log = FALSE)

qperksmake(p, rate = 1, shape = 1, lambda = 0, lower.tail = TRUE)

Arguments

q

vector of quantiles.

rate

rate parameter (\nu)

shape

shape parameter (\alpha)

lambda

exponential rate of the Makeham component

lower.tail

logical; if TRUE (default), the lower tail probability \Pr(X \leq x) is returned.

log.p

logical; if FALSE (default), values are returned on the probability scale.

x

vector of quantiles.

log

logical; if FALSE (default), return the hazard

p

vector of probabilities.

Value

a vector of (log)-probabilities of the same length as q

a vector of (log)-density.

a vector of (log)-hazard.

vector of quantiles

a vector of quantiles


longevity documentation built on Nov. 12, 2023, 5:07 p.m.