Downloading and reading in American Community Survey Data: Python and SPSS
I had a prior blog post on working with American Community Survey data in SPSS. The meta-data format has changed from that example though, and the Census gives out comma separated files and xls...
View ArticleSpatial join points to polygons using Python and SPSS
A recent use case of mine I had around 60 million points that I wanted to assign to census block groups. ArcGIS was being problematic to simply load in the 60 million point dataset (let alone spatial...
View ArticleHeatmaps in SPSS
Heatmap is a visualization term that gets used in a few different circumstances, but here I mean a regular grid in which you use color to indicate particular values. Here is an example from Nathan Yau...
View ArticleSide by side charts in SPSS
One aspect of SPSS charts that you need to use syntax for is to create side-by-side charts. Here I will illustrate a frequent use case, time series charts with different Y axes. You can download the...
View ArticleSPSS Statistics for Data Analysis and Visualization – book chapter on...
A book I made contributions to, SPSS Statistics for Data Analysis and Visualization, is currently out. Keith and Jesus are the main authors of the book, but I contributed one chapter and Jon Peck...
View ArticleTesting the equality of coefficients – Same Independent, Different Dependent...
As promised earlier, here is one example of testing coefficient equalities in SPSS, Stata, and R. Here we have different dependent variables, but the same independent variables. This is taken from...
View ArticleUsing FILE HANDLE in SPSS
To aid in reproducible analysis, I often have a set of FILE HANDLE commands at the header of my syntax. For example, here is basically what most of my syntax’s look like at the top. DATASET CLOSE ALL....
View ArticleRemaking a clustered bar chart
Thomas Lumley on his blog had a recent example of remaking a clustered bar chart that I thought was a good idea. Here is a screenshot of the clustered bar chart (the original is here): And here is...
View ArticleSorting rates using empirical Bayes
A problem I have come across in a few different contexts is the idea of ranking rates. For example, say a police department was interested in increasing contraband recovery and are considering two...
View ArticleMaking caterpillar plots for random effects in SPSS
For one of my classes for PhD students (in seminar research and analysis), I talk about the distinction between random effect models and fixed effect models for a week. One of my favorite plots to go...
View Article