Compute follow-up overlap with an attained-age band
Source:R/sim_cox_age_data_helpers.R
dot-overlap_weight.RdComputes the amount of follow-up time contributed within a single attained-age band.
Arguments
- band_lower_age
Numeric scalar or vector giving the lower boundary of the attained-age band.
- band_upper_age
Numeric scalar or vector giving the upper boundary of the attained-age band.
- entry_age
Numeric scalar or vector giving age at entry.
- exit_age
Numeric scalar or vector giving age at exit (event or censoring).
Value
Numeric scalar or vector giving the overlap duration. Returns 0 where the intervals do not intersect.