decision_2 {drugprepr}R Documentation

Decision 2: impute missing total quantities

Description

A light wrapper around impute_qty.

Usage

decision_2(data, decision = "a")

Arguments

data

a data frame

decision

one of the following strings:

"a"

Leave as missing (implicitly drop this prescription)

"b1"

set to mean for individual's prescriptions for that drug

"b2"

set to mean for practice's prescriptions for that drug

"b3"

set to mean for populations's prescriptions for that drug

"c1"

set to median for individual's prescriptions for that drug

"c2"

set to median for practice's prescriptions for that drug

"c3"

set to median for population's prescriptions for that drug

"d1"

set to mode for individual's prescriptions for that drug

"d2"

set to mode for practice's prescriptions for that drug

"d3"

set to mode for population's prescriptions for that drug

"e1"

use value of individual's next prescription

"e2"

use value of practice's next prescription

"e3"

use value of population's next prescription

"f1"

use value of individual's previous prescription

"f2"

use value of practice's previous prescription

"f3"

use value of population's previous prescription

Note

Decisions e and f are not yet implemented.

See Also

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


[Package drugprepr version 0.0.4 Index]