Quantcast
Channel: SPSS – Andrew Wheeler
Browsing all 78 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Using local Python objects in SPSSINC TRANS – examples with network statistics

When using SPSSINC TRANS, you have a wider array of functions to compute on cases in SPSS. Within the local session, you can create your own python functions within a BEGIN PROGRAM and END PROGRAM...

View Article


Image may be NSFW.
Clik here to view.

Turning SPSS data into Python data

Previously I blogged about how to take Python data and turn it back into SPSS data. Here we are going to do the opposite — turn SPSS data into Python objects. First to start out we will make a simple...

View Article


Image may be NSFW.
Clik here to view.

Maps in inline GPL statements (SPSS)

Here I will go through an example of using inline GPL statements to import map backgrounds in SPSS charts. Here you can download the data and code to follow along with this post. This is different than...

View Article

Image may be NSFW.
Clik here to view.

Shape, color, and pattern constants in SPSS charts

I have a version of the SPSS (Statistics) Version 24 GPL reference guide bookmarked here. The reference guide is great to skim through and see what is possible in SPSS charts – especially the set of...

View Article

Image may be NSFW.
Clik here to view.

Weekly and monthly graphs for monitoring crime patterns (SPSS)

I was recently asked for some code to show how I created the charts in my paper, Tables and Graphs for Monitoring Crime Patterns (Pre-print can be seen here). I cannot share the data used in the paper,...

View Article


Image may be NSFW.
Clik here to view.

Comparing samples post-matching – some helper functions after FUZZY (SPSS)

I’ve been conducting quite a few case-control or propensity score matching studies lately. So I wrote some helper functions for use after the SPSS FUZZY command. These create the case-control dataset,...

View Article

Image may be NSFW.
Clik here to view.

Plotting panel data with many lines in SPSS

A quick blog post – so you all are not continually assaulted by my mug shot on the front page of the blog! Panel data is complicated. When conducting univariate time series analysis, pretty much...

View Article

Image may be NSFW.
Clik here to view.

Added code snippets page

I’ve written quite a few blog posts over the years, and it is getting to be hard for me to keep all of them orderly. So I recently created a page with a simple table of contents with code snippets...

View Article


Image may be NSFW.
Clik here to view.

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 Article


Image may be NSFW.
Clik here to view.

Spatial 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 Article

Image may be NSFW.
Clik here to view.

Heatmaps 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 Article

Image may be NSFW.
Clik here to view.

Side 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 Article

Image may be NSFW.
Clik here to view.

SPSS 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 Article


Image may be NSFW.
Clik here to view.

Testing 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 Article

Using 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 Article


Image may be NSFW.
Clik here to view.

Remaking 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 Article

Image may be NSFW.
Clik here to view.

Sorting 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 Article


Image may be NSFW.
Clik here to view.

Making 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
Browsing all 78 articles
Browse latest View live