New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DOC] add an exmaple for LASSO #6191
Comments
An example would be welcome as a PR. Eventually I may get to it but not in the near future. Thanks for the link regarding selective inference methods. It would be nice to include some of these. Note that we do already have the Knockoff Filter, which is also a method for selective inference. Our Lasso is implemented generically, and works for most models (not just for linear regression), e.g. it works for all GLM's and survival analysis. We also have a separate approach to doing selective inference with GEE. I'm not sure how general these particular selective inference methods that you cited are. |
@kshedden Thanks for the info. Sounds like the SM implement could be quite useful, which exactly why we need examples. Since when setting lambda = 0 and it just becomes a simple OLS, and simple example for OLS would be nice. |
I volunteer. Anyone can assign me on this ? |
Thanks. |
Looks like #3670 is still open. I can use |
but the Btw, do we have cross-validation implemented in the model? or just use a sklearn to pickle a lambda and then fit a lasso in SM to get more statistics like standard error for inference? What a general workflow for Lasso with SM now? |
We don't have inference for Lasso. AFAIR, it is possible to estimate an unpenalized OLS after Lasso with the selected variables. That should have the inference, BUT it ignores the variable selection problem. (which is not really that much different from a specification search by the user or stepwise regression which is also ignore inference.) The old discrete |
Standard error doesn't mean much here since the limiting distribution is far from Gaussian. |
I think standard inference should be good enough for large coefficients in large samples. |
Please consider adding an example for LASSO regression.
Btw, I came across the following two resources, which might be useful for the implementation of selective inference.
https://www.pnas.org/content/pnas/112/25/7629.full.pdf
https://selective-inference.github.io/Python-software/
The text was updated successfully, but these errors were encountered: