Description Usage Arguments Value References
The iptw method or importance weighting method estimates the ADRF by weighting the data with stabilized or non-stabilized weights.
1 2 3 4 5 6 7 8 9 10 11 |
Y |
is the the name of the outcome variable contained in |
treat |
is the name of the treatment variable contained in
|
treat_formula |
an object of class "formula" (or one that can be
coerced to that class) that regresses |
numerator_formula |
an object of class "formula" (or one that can be
coerced to that class) that regresses |
data |
is a dataframe containing |
degree |
is 1 for linear and 2 for quadratic outcome model. |
treat_mod |
a description of the error distribution to be used in the
model for treatment. Options include: |
link_function |
specifies the link function between the variables in
numerator or denominator and exposure, respectively.
For |
... |
additional arguments to be passed to the low level treatment regression fitting functions. |
iptw_est
returns an object of class "causaldrf", a list that contains the following components:
param |
parameter estimates for a iptw fit. |
t_mod |
the result of the treatment model fit. |
num_mod |
the result of the numerator model fit. |
weights |
the estimated weights. |
weight_data |
the weights. |
out_mod |
the outcome model. |
Schafer, J.L., Galagate, D.L. (2015). Causal inference with a continuous treatment and outcome: alternative estimators for parametric dose-response models. Manuscript in preparation.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.