instr_vars | R Documentation |
Compute ITT, CACE and ATT from instrument variables.
instr_vars(
data,
formula,
exposure.name,
instrument.name,
tol = .Machine$double.eps^0.5
)
iv.r(
data,
formula,
exposure.name,
instrument.name,
tol = .Machine$double.eps^0.5
)
data |
Dataframe of raw data. |
formula |
Formula representing the model. |
exposure.name |
Name of exposure variable. |
instrument.name |
Name of instrument variable. |
tol |
Numeric > 0. Tolerance used in estimation. Default is .Machine$double.eps^0.5. |
See section 9.3 on p. 164 for details. When the tolerance is not met, the
Dataframe in a useable format for rsample::bootstraps
.
Section 9.3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.