make_class_indicators: Make ATC Indicators

Description Usage Arguments Value

View source: R/new_enrollee_initial_features.R

Description

Make ATC Indicators

Usage

1
make_class_indicators(DT, DT_id, id_vars, xwalk)

Arguments

DT

data.table with all elements of id_vars as well as lab_prod

DT_id

data.table data.table with all elements of id_vars

id_vars

character vector, names of variables to aggregate on

xwalk

data.table with columns lab_prod as well as any indicators (usually atc1-4 or rxcui)

Value

data.table of atc indicators at the level of DT_id


evanjflack/polypharmacy documentation built on Oct. 12, 2020, 10:45 a.m.