Description Usage Arguments Value
View source: R/acute_event_outcomes.R
Reformats ip claims diagnosis and procedure codes from wide to long. Used for generating acute outcome variables.
1 | unpack_ip(ip, num_dgns, num_prcdr)
|
ip |
data.table of inpatient claims with the columns bene_id, clm_id, from_dt, and dgnscd |
num_dgns |
integer (1-6), number of diagnosis codes to use |
num_prcdr |
integer (1-6), number of procedure codes to use |
list with 2 elements
ip_diag |
data.table of ip diagnosis |
ip_prcdr |
data.table of ip prcedures |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.