Description Usage Arguments Value Examples

The function will plot the predicted survival function when fitting a survival model and the predicted cumulative incidence function when fitting a competing risks model. Corresponding pointwise confidence intervals at level alpha are also included.

1 2 3 |

`x` |
the fitting object after fitting our model |

`newtreatment` |
a new treatment value |

`newIV` |
a new instrumental variable value |

`newcovariates` |
a new observed covariates |

`alpha` |
the confidence level 1 - alpha for confidence interval |

`unit` |
the time unit we focus |

`...` |
the other arguments you want to put in the built-in plot function |

No return value, called for side effects

1 2 3 4 5 6 7 |

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.