Description Usage Arguments Details Value Author(s)

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.

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

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

es dnmixsurv pnmixsurv qnmixsurv rnmixsurv hnmixsurv Hnmixsurv mean_nmixsurv rmst_nmixsurv

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

Jordan Amdahl <[email protected]>

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

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.