Skip to content

Instantly share code, notes, and snippets.

@vincentarelbundock
Created August 26, 2012 23:37
Show Gist options
  • Save vincentarelbundock/3484388 to your computer and use it in GitHub Desktop.
Save vincentarelbundock/3484388 to your computer and use it in GitHub Desktop.
Statsmodels example: Weighted Least Squares
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@MarketaP
Copy link

Hi, I was curious how you determined the weight for the WLS. I've seen somewhere w=1/(x^2), but what if the x data contain 0. Thanks.

@vincentarelbundock
Copy link
Author

I have not looked at this since I posted 8 years ago. I'm unlikely to find an answer for you. Sorry.

@MarketaP
Copy link

No worries, thanks anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment