Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Support for box constraints on fitted coefficients? #10

Open
tomwenseleers opened this issue Apr 11, 2018 · 2 comments
Open

Support for box constraints on fitted coefficients? #10

tomwenseleers opened this issue Apr 11, 2018 · 2 comments

Comments

@tomwenseleers
Copy link

In glmnet it is possible to specify box constraints or nonnegativity constraints on the fitted coefficients using the lower.limits and upper.limits argument. I was wondering if it would be hard to incorporate this kind of capability also in ncvreg?

@pbreheny
Copy link
Owner

Interesting suggestion. No, it wouldn't be very hard to implement this in ncvreg. I'll think about it!

@tomwenseleers
Copy link
Author

Do you think it might be possible to implement this? I'm still looking for this... Right now the only package with MCP or SCAD penalties with support for box constraints is ordinis, https://github.com/jaredhuling/ordinis/blob/master/src/CoordGLMDense.h, but that's not yet on CRAN, so right now impossible to have as a dependency in other packages... I think it's just a matter of clipping the coefficients within the allowed range...

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants