fixpoint {ComparisonCR}R Documentation

Statistical inference methods for cumulative incidence functions at a fixed time point

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

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

#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)

[Package ComparisonCR version 1.0.4 Index]