decision_10: Decision 10: close small gaps between successive...

Description Usage Arguments Details See Also

View source: R/algorithm.R

Description

Where one prescription (for the same drug and patient) starts only a short time after the previous finishes, this function can close the gap, as if the prescription was continuous over the entire period.

Usage

1
decision_10(data, decision = "a")

Arguments

data

a data frame

decision

one of the following strings:

"a"

do nothing

"b_15"

change stop date of first prescription to start date of next if gap is ≤q 15 days

"b_30"

change stop date of first prescription to start date of next if gap is ≤q 30 days

"b_60"

change stop date of first prescription to start date of next if gap is ≤q 60 days

Details

The underlying function is called close_small_gaps

See Also

Other decision functions: decision_1(), decision_2(), decision_3(), decision_4(), decision_5(), decision_6(), decision_7(), decision_8(), decision_9(), drug_prep()


belayb/drugprepr documentation built on Dec. 19, 2021, 7:44 a.m.