AAA_DML | R Documentation |
Averages the log odds ratio using prospective or retrospective high-dimensional logistic regression
AAA_DML(y, t, x, type = "pro", k = 10)
y |
n-dimensional vector of binary outcomes |
t |
n-dimensional vector of binary treatments |
x |
n by d matrix of covariates |
type |
'pro' if the average is based on prospective regression; 'retro' if it is based on prospective regression (default = 'pro') |
k |
number of folds in k-fold partition (default = 10) |
An S3 object of type "ciccr". The object has the following elements.
est |
a scalar estimate |
se |
standard error |
Jun, S.J. and Lee, S. (2020). Causal Inference under Outcome-Based Sampling with Monotonicity Assumptions. https://arxiv.org/abs/2004.08318.
# use the ACS dataset included in the package
y = ciccr::ACS$topincome
t = ciccr::ACS$baplus
age = ciccr::ACS$age
x = splines::bs(age, df=6) # b-splines for age
results = AAA_DML(y, t, x, 'pro', k=2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.