Calculates a delta value based upon a baseline delta value and a post ICE scaling coefficient.
d_lagscale(delta, dlag, is_post_ice)a numeric vector. Determines the baseline amount of delta to be applied to each visit.
a numeric vector. Determines the scaling to be applied
to delta based upon with visit the ICE occurred on. Must be the same
length as delta.
logical vector. Indicates whether a visit is "post-ICE" or not.
See delta_template() for full details on how this calculation is performed.