## throwing in a spatially-correlated random effect may mess up the fixed effect you love - revisiting Hodges and Reich (2010) for SAR models

Feb 24, 2018 - 8 minutes
import pysal as ps import numpy as np import pandas as pd import matplotlib.pyplot as plt import geopandas as gpd %matplotlib inline This is just a quick demonstration of what I understand from Hodges & Reich (2010)’s argument about the structure of spatial error terms. Essentially, his claim is that the substantive estimates ($\hat{\beta}$) from an ordinary least squares regression over $N$ observations and $P$ covariates: $$Y \sim \mathcal{N}(X\hat{\beta}, \sigma^2)$$ Read more ...

## Does projection matter for compactness indices?

Feb 18, 2018 - 4 minutes
This is a quick and dirty exploration of the compactness impacts of changing the projection of data on compactness measures. import geopandas as gpd import numpy as np import matplotlib.pyplot as plt from compact import reock as _reock import pysal as ps import seaborn as sns %matplotlib inline The data I’m using is the 113th districts from my Scientific Data publication, sourced originally from Jeff Lewis. df = gpd.read_file('./districts113.shp').query('STATENAME not in ("Alaska","Hawaii")')df. Read more ...

## Finally making headway on Brexit Data

Feb 15, 2018 - 1 minutes
That is after, of course, I just decided to focus on other data than data in the competition. imported from: yetanothergeographer Read more ...