pphase: Distribution function of PH distribution

View source: R/model_ph.R

pphaseR Documentation

Distribution function of PH distribution

Description

Compute the cumulative distribution function (c.d.f.) for a given PH distribution

Usage

pphase(q, ph, lower.tail = TRUE, log.p = FALSE, ...)

Arguments

q

A numeric vector of quantiles.

ph

An instance of PH distribution.

lower.tail

logical; if TRUE, probabilities are P(X <= x), otherwise P(X > x).

log.p

logical; if TRUE, probabilities p are returned as log(p).

...

Others

Value

A vector of densities

Examples

## create a PH with specific parameters
(phdist <- ph(alpha=c(1,0,0),
              Q=rbind(c(-4,2,0),c(2,-5,1),c(1,0,-1)),
              xi=c(2,2,0)))

## c.d.f. for 0, 0.1, ..., 1
pphase(q=seq(0, 1, 0.1), ph=phdist)


mapfit documentation built on Nov. 22, 2022, 5:05 p.m.