Learn R Programming

BuyseTest (version 2.1.3)

calcIntegralCif_cpp: C++ Function Computing the Integral Terms for the Peron Method in the presence of competing risks (CR).

Description

Compute the integral with respect to the jump in CIF for pairs where both outcomes are censored.

Usage

calcIntegralCif_cpp(cif, start_val, stop_val, CIF_t, lastCIF, type)

Arguments

cif

[matrix] cif[1] = jump times in control group (event of interest), cif[2-3] = CIF of event of interest in group T at times - tau and times + tau, cif[4] : jump in cif of control group at times (event of interest).

start_val

[numeric] Time at which to start the integral.

stop_val

[numeric] Time at which to stop the integral.

CIF_t

[numeric] CIF of event of interest in group T evaluated at observed time of treatment patient.

lastCIF

[numeric, >0] last value of CIF of event type 1 in group T.

type

[numeric] Indicates the type of integral to compute (1 for wins, 2 for losses, 3 for neutral pairs with two events of interest - integral with t+tau and xi - and 4 for neutral pairs with two events of interest - integral with t+tau and t-tau).