UDST / spandex

Spatial Analysis and Data Extraction
http://nbviewer.ipython.org/github/synthicity/user_meeting_2014/blob/gh-pages/spandex/spandex_demo.ipynb
BSD 3-Clause "New" or "Revised" License
22 stars 7 forks source link

Apply regression equation function #29

Open janowicz opened 10 years ago

janowicz commented 10 years ago

Function to impute missing/invalid/outlying values using predictions from a regression model or other statistical model (e.g. poisson). Applies regression equation, which may have been estimated in urbansim or statsmodels.

Examples:


apply_regression(buildings, variable_to_impute, regression_equation, replacement_criteria)
apply_regression(buildings, 'residential_rent', regression_equation)