Skip to content
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

Option to add instance weights #8

Open
xjtuxs opened this issue Aug 12, 2017 · 2 comments
Open

Option to add instance weights #8

xjtuxs opened this issue Aug 12, 2017 · 2 comments

Comments

@xjtuxs
Copy link

xjtuxs commented Aug 12, 2017

Is this package available for solving the weight SCAD or MCP regreesion? That is, to solve min (y-Xb)'W(y-Xb)+ MC/SCAD penalty, where W is a diagnal matrix with w_i as the weight of i'th observation.

I attempted to run the following codes, but it seemed not to work.
fit <- ncvreg ( X, y, weights = W)

Looking forward to your relies. Thank you!

@pbreheny
Copy link
Owner

pbreheny commented Aug 14, 2017

ncvreg does not currently have any options for including weights, but it would definitely be a valuable enhancement to the package. I can't promise any specific timeline, but I'll definitely leave this open and keep this improvement in mind for the next release of ncvreg.

@shuyang-stat
Copy link

Same question. Is the "weights" option available now?

@pbreheny pbreheny changed the title On weight SCAD or MCP regression Option to add instance weights Jun 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants