Learn R Programming

YPmodel (version 1.0)

YPmodel.IntervalBands: 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 $\hat{\beta}$, 2) its confidential intervals and 3) the odds function of the control group $\hat{R}(t,\hat{\beta})$, generated by YPmodel.estimate
x
A dataframe of hazard ratios and related confidential intervals and bands, generated by YPmodel.IntervalBands.
object
A dataframe of hazard ratios and related confidential intervals and bands, generated by YPmodel.IntervalBands, equally to x (different symbol for S4 method only).

Value

  • hrEstimation of the hazard ratio function.
  • ld2Lower bound of the time frame.
  • ud2Upper bound of the time frame.
  • upp3Upper bounds for the 95$%$ point-wise conffidence intervals of the hazard ratio function.
  • low3Lower bounds for the 95$%$ point-wise conffidence intervals of the hazard ratio function.
  • upp22Upper bounds for the 95$%$ simultaneous conffidence bands of the hazard ratio function.
  • low22Lower bounds for the 95$%$ simultaneous conffidence bands of the hazard ratio function.
  • upp90Upper bounds for the 90$%$simultaneous conffidence bands of the hazard ratio function.
  • low90Lower bounds for the 90$%$ simultaneous conffidence bands of the hazard ratio function.

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

YPmodel, YPmodel.estimate

Examples

Run this code
library(YPmodel)
    data(gastric)
    IntervalBands <- YPmodel.IntervalBands(data=gastric)
    summary.YPmodel.IntervalBands(IntervalBands)
    plot.YPmodel.IntervalBands(IntervalBands)

    Estimate <- YPmodel.estimate(data=gastric, interval=0)
    IntervalBands <- YPmodel.IntervalBands(data=gastric, Estimate=Estimate)

Run the code above in your browser using DataLab