pbreheny / biglasso

biglasso: Extending Lasso Model Fitting to Big Data in R
http://pbreheny.github.io/biglasso/
113 stars 29 forks source link

Option for sample weights? #9

Open mzhao94 opened 7 years ago

mzhao94 commented 7 years ago

I was wondering if there was a way to put in sample weights for biglasso. In cv.glmnet there is a "weights" option and it would be very useful for econometrics work.

YaohuiZeng commented 7 years ago

Thanks for your comment, @mzhao94. That option is not supported in current version. I may add this option later as I am really busy for graduation at this point.

privefl commented 7 years ago

Maybe the simplest way would be to

Is that okay with you, @YaohuiZeng?

Actually this could be done for weights on variables too, I think.

YaohuiZeng commented 7 years ago

@privefl sorry for the delayed reply. Thank you for your suggestions, which sound good to me. I will try to add options for sample/variable weights in next version.

privefl commented 7 years ago

@YaohuiZeng I don't know if this is as easy as I said. There are also scaling and regularization involved. Not sure where to use weights.