d_lagscale: Calculate delta from a lagged scale coefficient

View source: R/delta.R

d_lagscaleR Documentation

Calculate delta from a lagged scale coefficient

Description

Calculates a delta value based upon a baseline delta value and a post ICE scaling coefficient.

Usage

d_lagscale(delta, dlag, is_post_ice)

Arguments

delta

a numeric vector. Determines the baseline amount of delta to be applied to each visit.

dlag

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.

is_post_ice

logical vector. Indicates whether a visit is "post-ICE" or not.

Details

See delta_template() for full details on how this calculation is performed.


rbmi documentation built on Nov. 24, 2023, 5:11 p.m.