Description Usage Arguments Value Author(s)

Probability density, distribution, quantile, random generation, hazard cumulative hazard, mean, and restricted mean functions for generic mixture cure models. These distribution functions take as arguments the corresponding functions of the base distribution used.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |

`pfun` |
The base distribution's cumulative distribution function. |

`theta` |
The estimated cure fraction. |

`...` |
additional 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. |

`dmixsurv`

gives the density, `pmixsurv`

gives the
distribution function, `hmixsurv`

gives the hazard and
`Hmixsurv`

gives the cumulative hazard.

`qmixsurv`

gives the quantile function, which is computed by crude
numerical inversion.

`rmixsurv`

generates random survival times by using `qmixsurv`

on a sample of uniform random numbers. Due to the numerical root-finding
involved in `qmixsurv`

, it is slow compared to typical random number
generation functions.

`mean_mixsurv`

and `rmst_mixsurv`

give the mean and restricted
mean survival times, respectively.

Jordan Amdahl <[email protected]>

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.