decision_3 {drugprepr} | R Documentation |
Decision 3: impute implausible daily doses
Description
A light wrapper around impute_ndd
.
Usage
decision_3(data, decision = "a")
Arguments
data |
a data frame
|
decision |
one of the following strings:
- "a"
do nothing; leave implausible values as-is
- "b"
set implausible values to missing
- "c1"
set to mean for individual's prescriptions for that drug
- "c2"
set to mean for practice's prescriptions for that drug
- "c3"
set to mean for populations's prescriptions for that drug
- "d1"
set to median for individual's prescriptions for that drug
- "d2"
set to median for practice's prescriptions for that drug
- "d3"
set to median for population's prescriptions for that drug
- "e1"
set to mode for individual's prescriptions for that drug
- "e2"
set to mode for practice's prescriptions for that drug
- "e3"
set to mode for population's prescriptions for that drug
- "f1"
use value of individual's next prescription
- "f2"
use value of practice's next prescription
- "f3"
use value of population's next prescription
- "g1"
use value of individual's previous prescription
- "g2"
use value of practice's previous prescription
- "g3"
use value of population's previous prescription
|
Note
Decisions f
and g
are not yet implemented.
See Also
Other decision functions:
decision_10()
,
decision_1()
,
decision_2()
,
decision_4()
,
decision_5()
,
decision_6()
,
decision_7()
,
decision_8()
,
decision_9()
,
drug_prep()
[Package
drugprepr version 0.0.4
Index]