calc_initial_spending: Calculate Initial Spending (New Enrollees)

Description Usage Arguments Value

View source: R/new_enrollee_initial_features.R

Description

Calculate Initial Spending (New Enrollees)

Usage

1
calc_initial_spending(DT, DT_id, id_vars, initial_days)

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

initial_days

integer, maximum number of days to use from enrollment

Value

data.table


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