Description Usage Arguments Value Author(s) See Also

View source: R/hazard.smoothSurvReg.R

Compute and plot hazard function for given combinations of covariates based on the fitted model.

1 2 3 4 |

`x` |
Object of class smoothSurvReg. |

`cov` |
Vector or matrix with covariates values for which the survivor curve/cdf
is to be computed and plotted. It must be a matrix with as many columns as
is the number of covariates (interactions included) or the vector of length
equal to the number of covariates (interactions included). Intercept is not
to be included in |

`logscale.cov` |
Vector or matrix with covariate values for the expression of log-scale (if this depended on covariates). It can be omitted in the case that log-scale was common for all observations. |

`time0` |
Starting time of the follow-up as used in the model. I.e. the
model is assumed to be |

`plot` |
If |

`by` |
Step for a ploting grid. If |

`xlim, ylim` |
Arguments passed to the |

`xlab, ylab` |
Arguments passed to the |

`type, lty` |
Arguments passed to the |

`main, sub` |
Arguments passed to the |

`legend, bty` |
Argument passed to the |

`cex.legend` |
argument passed to |

`...` |
Arguments passed to the |

A dataframe with columns named `x`

and `y`

where `x`

gives the grid
and `y`

the values of the hazard function at that grid.

Arno<c5><a1>t Kom<c3><a1>rek arnost.komarek[AT]mff.cuni.cz

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.