decision_7 {drugprepr}R Documentation

Decision 7: impute missing prescription durations

Description

A light wrapper around impute_duration.

Usage

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


[Package drugprepr version 0.0.4 Index]