ABC.comb: The combined test of the Li's test and area between the CIF...

Description Usage Arguments Value References Examples

View source: R/ComparisonCR.R

Description

Statistical inference of combined test with combination of the Li's test and area between the CIF curves(ABC) test.

Usage

1
ABC.comb(time, status, group, nboot=1000, seed=12345)

Arguments

time

The followed up time for testing data.

status

The status indicator, should be coded as 0= censored, 1= event of interest, 2= all other competing events.

group

The group indicator for comparison, and the elements of this vector should take either 0 or 1. Normally, 0= control group, 1= treatment group.

nboot

The times of bootstrap resamplings, with default as nboot=1000.

seed

The seed number, with default seed=12345.

Value

method

Three test results are involved, the Li's test, ABC test, and their combined test.

statistic

The statistic of the Li's test, ABC test, and combined test.

Pvalue

The P value of the Li's test, ABC test, and combined test.

References

[1] Li JN, Rademacher JL, Zhang MJ. Weighted comparison of two cumulative incidence functions with R-CIFsmry package. Computer Methods and Programs in Biomedicine, 2014, 116(3): 205-214.

[2] Lyu J, Chen J, Hou Y, Chen Z. Comparison of two treatments in the presence of competing risks. Pharmaceutical Statistics, 2020. DOI: 10.1002/pst.2028.

Examples

1
2
3
4
5
#get dataset from package
data(crossdata)
#just for an example, we set resampling times at 10
#combined test
ABC.comb(crossdata$time, crossdata$status, crossdata$group, nboot=10)

Example output

The bootstrap resampling times =10


    method  statistic      Pvalue
1       Li -0.4086917 0.682765930
2      ABC  2.6216234 0.008751208
3 Combined  2.6216234 0.100000000

ComparisonCR documentation built on July 1, 2020, 8:12 p.m.