iterate_2sls: Estimate 2SLS Mortality Model

Description Usage Arguments Details Value

View source: R/iterate_2sls.R

Description

Iterate estimation of the 2SLS mortality model over multiple specificiations.

Usage

1
iterate_2sls(DT, grid, max_cores)

Arguments

DT

a data.table with relevant model/sample option variables. Must have all the "keep" variables in grid, as well as the variables for all the options specified in grid. For example, if outcome = "mort" and outcome_period = 30, DT must have a column named "mort_30".

grid

a data.table with estimation options (see below)

max_cores

integer, maximum number of parallels cores allowed to run at once

Details

grid

Value

data.table with the estimation options (from grid), 2SLS estimates, SEs, p-values, CIs, etc...


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