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 gastric for instance.

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

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.

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

YPmodel, YPmodel.estimate

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)

[Package YPmodel version 1.4 Index]