cumyears: Tally years lived within a follow-up period

Description Usage Arguments Value Examples

Description

Count years alive within a follow-up period, summed over all individuals per sim

Usage

1
cumyears(futimes, times)

Arguments

futimes

Vector of follow-up times to assess

times

Matrix of times to cancer mortality

Value

Matrix of cumulative years lived within the follow-up period for sims (rows) and follow-up times (columns)

Examples

1
2
3
4
# Assess 5- and 10-year follow-ups
fu <- c(5, 10)
times <- matrix(rexp(n=25, rate=1/5), nrow=5, ncol=5)
cumyears(fu, times)

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