cuminc: Tally cumulative incidence of cancer

Description Usage Arguments Value Examples

Description

Count incident cancer cases within a follow-up period

Usage

1
cuminc(futimes, times)

Arguments

futimes

Vector of follow-up times to assess

times

Matrix of times to cancer incidence

Value

Matrix where rows tally incident cases for each sim; columns represent the various follow-up times

Matrix of incidence counts for sims (rows) and follow-up times (columns)

Examples

1
2
3
4
5
6
# Assess 5- and 10-year follow-ups
fu <- c(5, 10)
times <- matrix(rexp(n=25, rate=1/5), nrow=5, ncol=5)
# Rows are simulations, columns are 5- and 10-year follow-up times, 
# and cells are incidence counts within the periods
cuminc(fu, times)

cancerpolicy/bcimodel documentation built on June 30, 2019, 12:39 a.m.