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

Support observation weights #15

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

Support observation weights #15

tomwenseleers opened this issue Apr 15, 2018 · 2 comments

Comments

@tomwenseleers
Copy link

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) ?

@jaredhuling
Copy link
Owner

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

@sehoff
Copy link

sehoff commented Jul 15, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants