YPmodel.adlgrk {YPmodel} | R Documentation |
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 |
object |
A dataframe of the two lack-of-fit tests, to test the hypothesis of equal distribution function in the two groups, generated by |
Value
An object of class YPmodel.adlgrk
, basically a list including elements
pval |
p-value from adaptively weighted logrank test. |
Author(s)
Junlong Sun and Song Yang
References
YANG, S. AND PRENTICE, R. L. (2010). Improved Logrank-Type Tests for Survival Data Using Adaptive Weights. Biometrics 66, 30-38.
See Also
Examples
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)