dweibullPH(x, shape, scale=1, log = FALSE)
pweibullPH(q, shape, scale=1, lower.tail = TRUE, log.p = FALSE)
qweibullPH(p, shape, scale=1, lower.tail = TRUE, log.p = FALSE)
rweibullPH(n, shape, scale=1)
HweibullPH(x, shape, scale=1, log = FALSE)
hweibullPH(x, shape, scale=1, log = FALSE)length(n) > 1, the length is
taken to be the number required.dweibullPH gives the density, pweibullPH gives the distribution
function, qweibullPH gives the quantile function, rweibullPH
generates random deviates, HweibullPH retuns the cumulative hazard
and hweibullPH the hazard.dweibull in base R has the alternative 'accelerated
failure time' (AFT) parameterisation with shape a and scale b. The
shape parameter $a$ is the same in both versions. The scale
parameters are related as $b = m^{-1/a}$, equivalently m = b^{-a}.
In survival modelling, covariates are typically included through a
linear model on the log scale parameter. Thus, in the proportional
hazards model, the coefficients in such a model on $m$ are
interpreted as log hazard ratios.
In the AFT model, covariates on $b$ are interpreted as time
acceleration factors. For example, doubling the value of a covariate
with coefficient $beta=log(2)$ would give half the expected survival
time. These coefficients are related to the log hazard ratios
$\gamma$ as $\beta = -\gamma / a$.dweibull