bootstrap_fs_perc_change: Bootstrap SE Percentage Change Models

Description Usage Arguments Value

View source: R/fit_first_stage_elasticity.R

Description

Bootstrap SE Percentage Change Models

Usage

1
bootstrap_fs_perc_change(DT, form, y, x_main, x_int, B, quiet)

Arguments

DT

a data.table

form

fomula, first stage formula

y

character vector, name of response variable(s) without months suffix

x_main

character (default = "first_mo"), name of instrument

x_int

character vector, names of variables to interact instrument with

B

integer, number of bootstrap samples to use when calculating standard errors

quiet

logical (default = FALSE), if TRUE then does not print progress

Value

data.table with standard errors


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