Learn R Programming

YPmodel (version 1.2)

YPmodel.adlgrk: Adaptively weighted logrank test

Description

A function to calculate p-value of the adaptive weighted logrank test.

Usage

## S3 method for class 'adlgrk':
YPmodel(data, Estimate, ...)
## S3 method for class 'YPmodel.adlgrk':
summary(object, ...)

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
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
object
A dataframe of the two lack-of-fit tests, to test the hypothesis of equal distribution function in the two groups, generated by YPmodel.adlgrk.

Value

  • An object of class YPmodel.adlgrk, basically a list including elements
  • pvalp-value from adaptively weighted logrank test.

References

YANG, S. AND PRENTICE, R. L. (2010). Improved Logrank-Type Tests for Survival Data Using Adaptive Weights. Biometrics 66, 30-38.

See Also

YPmodel, YPmodel.estimate,

Examples

Run this code
library(YPmodel)
    data(gastric)
    Adlgrk <- YPmodel.adlgrk(data=gastric)
    summary(Adlgrk)

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

Run the code above in your browser using DataLab