impute_ndd: Replace implausible or missing numerical daily doses (NDD)

Description Usage Arguments Value Examples

View source: R/impute.R

Description

Replace implausible or missing numerical daily doses (NDD)

Usage

1
impute_ndd(data, method, where = is.na, group = "population", ...)

Arguments

data

A data frame containing columns prodcode, pracid, patid

method

Method for imputing the values. See details.

where

Logical vector, or function applied to variable returning such a vector, indicating which elements to impute. Defaults to is.na

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

1

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