Skip to contents

Analytical solution for the generalised gamma distribution in the Prentice parameterisation used by flexsurv::pgengamma(), with parameters mu, sigma and Q. For Q > 0 this is mapped to the Stacy parameterisation of pcens_cdf.pcens_pgengamma.orig_dunif() via shape = Q / sigma, scale = exp(mu) * Q^(2 * sigma / Q) and k = 1 / Q^2. For Q <= 0 (the lognormal and reflected cases) the numerical pcens_cdf.default() method is used.

Usage

# S3 method for class 'pcens_pgengamma_dunif'
pcens_cdf(object, q, pwindow, use_numeric = FALSE)

Arguments

object

A primarycensored object as created by new_pcens().

q

Vector of quantiles

pwindow

Primary event window

use_numeric

Logical, if TRUE forces use of numeric integration even for distributions with analytical solutions. This is primarily useful for testing purposes or for settings where the analytical solution breaks down.

Value

Vector of computed primary event censored CDFs