fixpoint: Statistical inference methods for cumulative incidence...

Description Usage Arguments Value References Examples

View source: R/ComparisonCR.R

Description

A function used to produce the results of three type of statistical inference methods for testing cumulative incidence functions at fixed time point.

Usage

1
fixpoint(time, status, group, timepoint, type=1)

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.

timepoint

The fixed time point for testing.

type

Four type of statistical inference methods. "1" is related to Gaynor variance, "2" is related to Aalen variance. The default is set to type=1.

Value

method

Containing 5 transformation of statistical inference methods: line, log, cloglog, arcsin-square, and logist. See more details in references.

est0

The estimation of survival rates at the fixed timepoint for control group.

var0

The estimation of variances at the fixed timepoint for control group.

est1

The estimation of survival rates at the fixed timepoint for treatment group.

var1

The estimation of variances at the fixed timepoint for treatment group.

statistic

The statistics of corresponding methods.

Pvalue

The test P value of corresponding methods.

References

Chen J, Hou Y, Chen Z. Statistical inference methods for cumulative incidence function curves at a fixed point in time. Communications in Statistics - Simulation and Computation, 2020, 49(1): 79-94.

Examples

1
2
3
4
5
6
7
8
#get dataset from package
data(crossdata)
#
#if there exist differences at 1 year or 3 years
  #Gaynor
fixpoint(crossdata$time, crossdata$status, crossdata$group, timepoint=1, type=1)
  #Aalen
fixpoint(crossdata$time, crossdata$status, crossdata$group, timepoint=3, type=2)

Example output

The estimation of CIFs at the timepoint (timepoint) =1


         method est0     var0 est1     var1 statistic       Pvalue
1          Line 0.08 0.000819 0.33 0.002275  20.20039 6.973879e-06
2           Log 0.08 0.000819 0.33 0.002275  13.48974 2.398710e-04
3       Cloglog 0.08 0.000819 0.33 0.002275  18.29505 1.891985e-05
4 Arcsin-square 0.08 0.000819 0.33 0.002275  19.74940 8.828958e-06
5         Logit 0.08 0.000819 0.33 0.002275  15.20926 9.623043e-05
The estimation of CIFs at the timepoint (timepoint) =3


         method est0        var0 est1        var1 statistic    Pvalue
1          Line 0.73 0.001969542 0.63 0.002332361  2.324552 0.1273468
2           Log 0.73 0.001969542 0.63 0.002332361  2.267426 0.1321192
3       Cloglog 0.73 0.001969542 0.63 0.002332361  2.273885 0.1315697
4 Arcsin-square 0.73 0.001969542 0.63 0.002332361  2.310849 0.1284738
5         Logit 0.73 0.001969542 0.63 0.002332361  2.283825 0.1307291

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