Takes a delta dataset and adjusts the outcome variable by adding the corresponding delta.
apply_delta(data, delta = NULL, group = NULL, outcome = NULL)
data.frame
which will have its outcome
column adjusted.
data.frame
(must contain a column called delta
).
character vector of variables in both data
and delta
that will be used
to merge the 2 data.frames together by.
character, name of the outcome variable in data
.