Description Usage Arguments Value
Calculate New Enrollee Part D Spending by Month and Brand/Generic Type
1 | calc_spending_by_month_brand(DT, DT_id)
|
DT |
data.table with the columns bene_id, year (relative to enrollment year, starting at 1), month, cost, and oop_cost |
DT_id |
data.table with the column bene_id |
data.table with spending/cumulative spending (total/oop) by year, month, and brand type. 0 - generic, 1 - brand, 2 - unknown
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.