decision_8 {drugprepr}R Documentation

Decision 8: disambiguate prescriptions with the same start date

Description

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

Usage

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()


[Package drugprepr version 0.0.4 Index]