# nmixsurv: Non-Mixture Cure Models In flexsurvcure: Flexible Parametric 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

 ``` 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15``` ```pnmixsurv(pfun, q, theta, ...) hnmixsurv(dfun, x, theta, ...) Hnmixsurv(pfun, x, theta, ...) dnmixsurv(dfun, pfun, x, theta, ...) qnmixsurv(pfun, p, theta, ...) rnmixsurv(pfun, 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. `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 <[email protected]>

flexsurvcure documentation built on July 17, 2017, 9:02 a.m.