YPmodel.adlgrk: Adaptively weighted logrank test

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/YPmodel.adlgrk.R

Description

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

Usage

1
2
3
4
## 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 gastric for instance.

Estimate

A dataframe of estimation results, including 1) estimation of \hat{β}, 2) its confidential intervals and 3) the odds function of the control group \hat{R}(t,\hat{β}), 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

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

YPmodel, YPmodel.estimate,

Examples

1
2
3
4
5
6
7
    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)

Example output

Warning messages:
1: In ro * x :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

2: In (t - th2 - ro * x)/sqrt(2 * (1 - ro^2)) :
  Recycling array of length 1 in vector-array arithmetic is deprecated.
  Use c() or as.vector() instead.

3: In ro * x :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

4: In (-t - th2 - ro * x)/sqrt(2 * (1 - ro^2)) :
  Recycling array of length 1 in vector-array arithmetic is deprecated.
  Use c() or as.vector() instead.

-------------------------------------------------------------------------------------------------------------  

Improved Logrank-Type Tests (p-value):
0.0304 
Warning messages:
1: In ro * x :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

2: In (t - th2 - ro * x)/sqrt(2 * (1 - ro^2)) :
  Recycling array of length 1 in vector-array arithmetic is deprecated.
  Use c() or as.vector() instead.

3: In ro * x :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

4: In (-t - th2 - ro * x)/sqrt(2 * (1 - ro^2)) :
  Recycling array of length 1 in vector-array arithmetic is deprecated.
  Use c() or as.vector() instead.

YPmodel documentation built on Oct. 23, 2020, 5:15 p.m.