Description Usage Arguments Value Author(s) References See Also Examples
View source: R/YPmodel.adlgrk.R
A function to calculate p-value of the adaptive weighted logrank test.
1 2 3 4 |
... |
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{β}, 2) its confidential intervals and 3) the odds function of the control group \hat{R}(t,\hat{β}), generated by |
object |
A dataframe of the two lack-of-fit tests, to test the hypothesis of equal distribution function in the two groups, generated by |
An object of class YPmodel.adlgrk
, basically a list including elements
pval |
p-value from adaptively weighted logrank test. |
Junlong Sun and Song Yang
YANG, S. AND PRENTICE, R. L. (2010). Improved Logrank-Type Tests for Survival Data Using Adaptive Weights. Biometrics 66, 30-38.
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)
|
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.