impute_qty {drugprepr} | R Documentation |
Find implausible entries Replace implausible or missing prescription quantities
Description
Find implausible entries Replace implausible or missing prescription quantities
Usage
impute_qty(data, method, where = is.na, group = "population", ...)
Arguments
data |
A data frame containing columns |
method |
Method for imputing the values. See details. |
where |
Logical vector, or function applied to |
group |
Level of structure for imputation. Defaults to whole study population. |
... |
Extra arguments, currently ignored |
Value
A data frame of the same structure as data
, with values imputed
Examples
impute_qty(example_therapy, 'mean')
[Package drugprepr version 0.0.4 Index]