decision_7: Decision 7: impute missing prescription durations

Description Usage Arguments See Also

View source: R/algorithm.R

Description

A light wrapper around impute_duration.

Usage

1
decision_7(data, decision = "a")

Arguments

data

a data frame

decision

one of the following strings:

"a"

Leave missing durations as-is (implicitly drop the prescription)

"b"

Use mean prescription duration for that drug, for that individual

"c"

Use mean prescription duration for that drug, for the population

"d"

Use individual mean duration; if not available use population mean

See Also

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


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