decision_5: Decision 5: impute implausible prescription durations

Description Usage Arguments See Also

View source: R/algorithm.R

Description

A light wrapper around clean_duration.

Usage

1
decision_5(data, decision = "a")

Arguments

data

a data frame

decision

one of the following strings:

"a"

leave duration as-is

"b_6"

set to missing if > 6 months

"b_12"

set to missing if > 12 months

"b_24"

set to missing if > 24 months

"c_6"

set to 6 months if > 6 months

"c_12"

set to 12 months if > 12 months

"c_24"

set to 24 months if > 24 months

See Also

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


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