Description Usage Arguments Details Value Author(s) See Also Examples

This function estimates the hazard ratio between two subjects at given times, along with the associated 95% confidence interval.

1 |

`x` |
results from the model fit returned by the icweib function. |

`times` |
the vector of times at which the hazard ratio is estimated. |

`NumStra` |
the strata of the subject in the numerator. If the model is unstratified, then set it to be the constant that is used for |

`NumZ` |
the vector of values of the explanatory variables for the subject in the numerator. The order and length should match the estimated coefficients as shown in x$coef. The default is NULL, corresponding to all 0 or baseline. |

`DemStra` |
the strata of the subject in the denominator. If the model is unstratified, then set it to be the constant that is used for |

`DemZ` |
the vector of values of the explanatory variables for the subject in the denominator. The order and length should match the estimated coefficients as shown in x$coef. The default is NULL, corresponding to all 0 or baseline. |

The hazard ratio between two subjects is obtained from the maximum likelihood estimates from the stratified Weibull regression model, along with the corresponding 95% confidence interval.

A data frame of estimated hazard ratios and confidence intervals for two subjects at each time point is returned.

Xiangdong Gu and Raji Balasubramanian

1 2 3 |

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.