Description Usage Arguments Value Author(s) References See Also Examples
View source: R/YPmodel.IntervalBands.R
A function to calculate the confidential intervals and bands of the hazard ratio function.
1 2 3 4 5 6 |
... |
For S4 method only. |
data |
A properly qualified filename where text data is to be saved, or a dataframe of input data set with three vectors: the event / censoring time (unite: year), the censoring indicator, and the group membership indicator. See the structure of sample data set |
Internal |
A dataframe of internal parameters, used only to perform hypothesis tests and plot (and to accelerate the speed). |
Estimate |
A dataframe of estimation results, including 1) estimation of \hat{β}, 2) its confidential intervals and 3) the odds function of the control group \hat{R}(t,\hat{β}), generated by |
x |
A dataframe of hazard ratios and related confidential intervals and bands,
generated by |
object |
A dataframe of hazard ratios and related confidential intervals and bands,
generated by |
hr |
Estimation of the hazard ratio function. |
ld2 |
Lower bound of the time frame. |
ud2 |
Upper bound of the time frame. |
upp3 |
Upper bounds for the 95\% point-wise conffidence intervals of the hazard ratio function. |
low3 |
Lower bounds for the 95\% point-wise conffidence intervals of the hazard ratio function. |
upp22 |
Upper bounds for the 95\% simultaneous conffidence bands of the hazard ratio function. |
low22 |
Lower bounds for the 95\% simultaneous conffidence bands of the hazard ratio function. |
upp90 |
Upper bounds for the 90\%simultaneous conffidence bands of the hazard ratio function. |
low90 |
Lower bounds for the 90\% simultaneous conffidence bands of the hazard ratio function. |
Junlong Sun and Song Yang
YANG, S. AND PRENTICE, R. L. (2011). Estimation of the 2-sample hazard ratio function using a semiparametric model. Biostatistics 12, 354-368.
1 2 3 4 5 6 7 8 | library(YPmodel)
data(gastric)
IntervalBands <- YPmodel.IntervalBands(data=gastric)
summary(IntervalBands)
plot(IntervalBands)
Estimate <- YPmodel.estimate(data=gastric, interval=0)
IntervalBands <- YPmodel.IntervalBands(data=gastric, Estimate=Estimate)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.