UDST / spandex

Spatial Analysis and Data Extraction

Home Page:http://nbviewer.ipython.org/github/synthicity/user_meeting_2014/blob/gh-pages/spandex/spandex_demo.ipynb

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Apply regression equation function

janowicz opened this issue · comments

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)