Closed vincentarelbundock closed 1 year ago
The main purpose of get_coef()
is to extract coefficients that will then be (slightly) modified and fed back to set_coef()
. The latter function is then used to modify the model and make (slightly) different predictions to get the derivatives of predictions/contrasts/slopes with respect to the parameters of the model. This is what ultimately gives us the Delta Method standard errors.
I don't know super learner, but my guess is that this doesn't make much sense as a procedure in a multi-model "ensemble" setup like this. You probably won't be able to get standard errors in the classical statistics way, and may have to rely on bootstrapping or somesuch.
If we are giving up on the delta method, we may not even need get_coef()
at all.
Please note that it is summer vacation season, so I may not be able to answer messages promptly or offer as much support as I normally would.
I am still very interested in this, but I am closing the issue to keep the repository "clean". I listed SuperLearner
as a desirable future support in the issue where I consolidate all these requests: https://github.com/vincentarelbundock/marginaleffects/issues/49
Hopefully someone will rise up to the occasion, or I will find some time in the future to look into it.
I am also very interested but I will only slowly try to find a proper solution. I need to wrap up a paper now.
I believe this might be supported via tidymodels
already: https://www.alexpghayes.com/post/2019-04-13_implementing-the-superlearner-with-tidymodels/
Looks like so, yes!
Originally posted by @lorenzoFabbri in https://github.com/vincentarelbundock/marginaleffects/issues/49#issuecomment-1624928196