This article introduces the new Stata command spgen, which computes spatially lagged variables in Stata. The only additional information required to implement this command are the latitude and ...