interp_cif: Interpolate CIF matrix

View source: R/interp.R

interp_cifR Documentation

Interpolate CIF matrix

Description

Interpolates cumulative incidence (CIF) functions (corresponding to one competing event only) using left-continuous constant interpolation.

Usage

interp_cif(x, times = NULL, eval_times = NULL, add_times = TRUE, check = TRUE)

Arguments

x

(matrix())
CIF matrix (rows = observations, columns = time points).

times

(numeric() | NULL)
Anchor time points. If NULL, extracted from colnames(x).

eval_times

(numeric() | NULL)
New time points at which to interpolate. Values need to be unique, increasing non-negative numbers. If NULL, the anchor times are used.

add_times

(logical(1))
If TRUE, attach eval_times as colnames in the output matrix.

check

(logical(1))
If TRUE, run input matrix validation checks using assert_prob(); set to FALSE to skip checks (NOT recommended for external use).

Value

Interpolated CIF matrix.


survdistr documentation built on April 9, 2026, 5:09 p.m.