View source: R/instr_loglinear.R
instr_loglinear | R Documentation |
Estimate effect using instrument variables via logarithmic fit.
instr_loglinear(
data,
formula,
exposure.name,
instrument.name,
tol = .Machine$double.eps^0.5,
niter = 10L
)
ivlog.r(
data,
formula,
exposure.name,
instrument.name,
tol = .Machine$double.eps^0.5,
niter = 10L
)
data |
Dataframe of raw data. |
formula |
Formula representing the model. It must be a saturated model,
e.g. |
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. |
niter |
Number of iterations |
See section 9.3 p. 167-168 for details. It is important to note that the formula must specify a saturated model, e.g. Y ~ T * A.
Dataframe in a useable format for rsample::bootstraps
.
Section 9.3
# An example can be found in the location identified in the
# source section above at the github site
# https://github.com/FrankLef/FundamentalsCausalInference.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.