nmixsurv {flexsurvcure} | R Documentation |
Non-Mixture Cure Models
Description
Probability density, distribution, quantile, random generation, hazard cumulative hazard, mean, and restricted mean functions for generic non-mixture cure models. These distribution functions take as arguments the corresponding functions of the base distribution used.
Usage
pnmixsurv(pfun, q, theta, ...)
hnmixsurv(dfun, x, theta, ...)
Hnmixsurv(pfun, x, theta, ...)
dnmixsurv(dfun, pfun, x, theta, ...)
qnmixsurv(qfun, p, theta, ...)
rnmixsurv(qfun, n, theta, ...)
rmst_nmixsurv(pfun, t, theta, ...)
mean_nmixsurv(pfun, theta, ...)
Arguments
pfun |
The base distribution's cumulative distribution function. |
theta |
The estimated cure fraction. |
... |
Parameters to be passed to the pdf or cdf of the base distribution. |
dfun |
The base distribution's probability density function. |
x , q , t |
Vector of times. |
qfun |
The base distribution's quantile function. |
p |
Vector of probabilities. |
n |
Number of random numbers to simulate. |
Details
es dnmixsurv pnmixsurv qnmixsurv rnmixsurv hnmixsurv Hnmixsurv mean_nmixsurv rmst_nmixsurv
Value
dnmixsurv
gives the density, pnmixsurv
gives the
distribution function, hnmixsurv
gives the hazard and
Hnmixsurv
gives the cumulative hazard.
qnmixsurv
gives the quantile function, which is computed by crude
numerical inversion.
rnmixsurv
generates random survival times by using qnmixsurv
on a sample of uniform random numbers. Due to the numerical root-finding
involved in qnmixsurv
, it is slow compared to typical random number
generation functions.
mean_nmixsurv
and rmst_nmixsurv
give the mean and restricted
mean survival times, respectively.
Author(s)
Jordan Amdahl <jrdnmdhl@gmail.com>