YPmodel.IntervalBands {YPmodel} | R Documentation |
Beta confidential intervals & bands
Description
A function to calculate the confidential intervals and bands of the hazard ratio function.
Usage
## S3 method for class 'IntervalBands'
YPmodel(data, Internal, Estimate, ...)
## S3 method for class 'YPmodel.IntervalBands'
summary(object, Internal, ...)
## S3 method for class 'YPmodel.IntervalBands'
plot(x, Internal, ...)
Arguments
... |
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 |
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 |
Value
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 |
low3 |
Lower bounds for the 95 |
upp22 |
Upper bounds for the 95 |
low22 |
Lower bounds for the 95 |
upp90 |
Upper bounds for the 90 |
low90 |
Lower bounds for the 90 |
Author(s)
Junlong Sun and Song Yang
References
YANG, S. AND PRENTICE, R. L. (2011). Estimation of the 2-sample hazard ratio function using a semiparametric model. Biostatistics 12, 354-368.
See Also
Examples
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)