Lsimp: Create one instance of the Lag-Lead matrix

Description Usage Arguments

Description

Create one instance of the Lag-Lead matrix

Usage

1
Lsimp(te_vec, t_vec, ll_fun = function(te, t) {     te <= t })

Arguments

te_vec

The vector of exposure times (times at which Change in TDC occured)

t_vec

The vector of event/split-times on the scale of the follow-up.

ll_fun

Function with two arguments that indicates how lag-lead matrix should be contructed. First argument is the time on the scale of the exposure, second argument is the time on the scale of the follow-up. Internally the lag lead matrix will be constructed by calling t(outer(te_vec, t_vec, ll_fun)).


adibender/pamm documentation built on May 14, 2019, 5:22 p.m.