-
Notifications
You must be signed in to change notification settings - Fork 2
Help files/examples #78
Copy link
Copy link
Open
Description
Thanks for fixing the bug I reported earlier. This really helps using ddml in my "causal inference" course.
However, there is another (new?) issue:
When running the example from the help file:
# Estimate the partially linear model using short-stacking with base learners
# ols, lasso, and ridge. We can also use custom_ensemble_weights
# to estimate the ATE using every individual base learner.
weights_everylearner <- diag(1, 3)
colnames(weights_everylearner) <- c("mdl:ols", "mdl:lasso", "mdl:ridge")
plm_fit <- ddml_plm(y, D, X,
learners = list(list(fun = ols),
list(fun = mdl_glmnet),
list(fun = mdl_glmnet,
args = list(alpha = 0))),
ensemble_type = 'nnls',
custom_ensemble_weights = weights_everylearner,
shortstack = TRUE,
sample_folds = 2,
silent = TRUE)
I get the following error message:
Error in (function (what, args, quote = FALSE, envir = parent.frame()) : 'what' must be a function or character string
This happens everytime I use more than one learner.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels