calc_spending_by_month_brand: Calculate New Enrollee Part D Spending by Month and...

Description Usage Arguments Value

Description

Calculate New Enrollee Part D Spending by Month and Brand/Generic Type

Usage

1

Arguments

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

Value

data.table with spending/cumulative spending (total/oop) by year, month, and brand type. 0 - generic, 1 - brand, 2 - unknown


evanjflack/cfo.behavioral documentation built on Oct. 10, 2020, 11:52 p.m.