decision_8: Decision 8: disambiguate prescriptions with the same start...

Description Usage Arguments See Also

View source: R/algorithm.R

Description

A light wrapper around impute_duration, followed by removing duplicate rows with the same combination of prodcode, patid and start_date.

Usage

1
decision_8(data, decision = "a")

Arguments

data

a data frame

decision

one of the following strings

"a"

do nothing

"b"

replace with a prescription of duration equal to the mean

"c"

choose the shortest prescription

"d"

choose longest prescription

"e"

replace with a prescription of duration equal to the sum

See Also

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


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