oem icon indicating copy to clipboard operation
oem copied to clipboard

Support observation weights

Open tomwenseleers opened this issue 6 years ago • 2 comments

I noticed that observation weights are not yet supported - are these not simple to incorporate by noticing that weighted least squares minimizes sum( w * (Y - X %% beta)^2 ) = sum_i( (sqrt(w[i]) * X[i, ] %% beta - sqrt(w[i]) * Y[i])^2 ), meaning that one could simulate observation weights simply by multiplying both the design matrix X and the dependent variance Y by sqrt(weights) ?

tomwenseleers avatar Apr 15 '18 10:04 tomwenseleers

I haven't had the time to do this but will eventually. There are some tricky issues due to how I scale/standardize the design matrix

jaredhuling avatar Apr 15 '18 14:04 jaredhuling

I would like to know, if you plan to implement observation weights in the future, or if this isn`t planned anymore?

And, of course, thanks a lot for your package.

sehoff avatar Jul 15 '22 14:07 sehoff