pysal / spreg

Spatial econometric regression in Python
https://pysal.org/spreg/
Other
67 stars 23 forks source link

Fixed Effects Panel - Spatial Lag #41

Closed pabloestradac closed 4 years ago

pabloestradac commented 4 years ago

This pull request adds the estimation of fixed effects panel data of spatial lag models. It uses the class Panel_FE_Lag to estimate a spatial lag panel model with the direct approach of demeaned variables.

It also adds the functions of check_panel (based on Pedro's _get_panel_data function) and demean_panel located in panel_utils.py.

weikang9009 commented 4 years ago

Thanks for this @pabloestradac . Could you put together a Jupyter notebook explaining and demonstrating the added functionalities?

weikang9009 commented 4 years ago

It seems that there is an error with the unit test spreg.tests.test_panel_fe.Test_Panel_FE_Lag https://travis-ci.org/github/pysal/spreg/jobs/703264975

pabloestradac commented 4 years ago

It seems it's fixed now. Thanks @weikang9009.