causalglmnet | R Documentation |
cv.glmnet
is used to fit all nuisance parameters. The parametric component of the semiparametric model is not penalized.
This function is almost just a wrapper for causalglm
.causalglmnet
High dimensional semiparametric generalized linear models for causal inference using the LASSO.
Supports flexible semiparametric conditional average treatment effect (CATE), conditional odds ratio (OR), and conditional relative risk (RR) estimation
cv.glmnet
is used to fit all nuisance parameters. The parametric component of the semiparametric model is not penalized.
This function is almost just a wrapper for causalglm
.
causalglmnet( formula, data, W, A, Y, estimand = c("CATE", "OR", "RR"), max_degree = 1, cross_fit = TRUE, constant_variance_CATE = FALSE, weights = NULL, parallel = TRUE, verbose = TRUE, ... )
formula |
A R formula object specifying the parametric form of CATE, OR, or RR (depending on method). |
data |
A data.frame or matrix containing the numeric values corresponding with the nodes |
W |
A character vector of covariates contained in |
A |
A character name for the treatment assignment variable contained in |
Y |
A character name for the outcome variable contained in |
estimand |
Estimand/parameter to estimate. Choices are:
CATE: Estimate conditional average treatment effect with |
cross_fit |
Whether to cross-fit the initial estimator. This is always set to FALSE if argument |
weights |
An optional vector of weights to use in procedure. |
parallel |
See |
... |
Other arguments to pass to |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.