Skip to contents

Asserts if the given input list is a list of Cumulative Incidence matrices.

Usage

assert_cif_list(x, n_rows = NULL, n_cmp_events = NULL)

Arguments

x

(list())
A list of CIF matrices, each one with dimensions (observations x times).

n_rows

(numeric(1))
Expected number of rows of each matrix element of the input list.

n_cmp_events

(numeric(1))
Expected number of competing events which is the number of elements in input CIF list.

Value

if the assertion fails an error occurs, otherwise NULL is returned invisibly.