pysal / spreg

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

Remove `spat_diag` options altogether for `ML_Lag` & `ML_Error` or document they're ignored #13

Closed ljwolf closed 4 years ago

ljwolf commented 6 years ago

Right now, ML_Lag(...,spat_diag=True) ignores spat_diag. For the GM_* models, they're running the AK test, which is fine. For the ML models, we might want to either:

  1. add to the docstring that spat_diag is ignored for the ML models, since there's no relevant tests.
  2. remove the spat_diag option from the keyword arguments.

I do like the ability to keep the API largely the same across the classes, but I also don't like having an argument that does nothing, even if documented.

Thoughts from other spreg devs?

ljwolf commented 6 years ago

This links to pysal/pysal#1039.