estimate_year_1_2_diff: Estimate year 1 to 2 usage differencs

Description Usage Arguments Value

View source: R/year_1_2_diff.R

Description

Estimate the first stage of likelihood that people with a year 2 usage amount had a specific usage amount in year 1

Usage

1
estimate_year_1_2_diff(DT, grid, year1_var, year2_var, x_main, x_int)

Arguments

DT

data.table

grid

data.table with combinations of jan/dec amounts

year1_var

character, name of the column of the year 1 usage amount

year2_var

character, name of the column of the year 2 usage amount

x_main

character,

x_int

character vector,

Value

data.table with first stage estimates for each combination in grid


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