Finding subgroups in a graph using NetworkX and SPSS

This is a task I've have to conduct under several guises in the past. Given a set of edges, reduce those edges into unique subgroups based on the transitive closure of those edges. That is, find a group in which all nodes can reach one another (via however many steps are necessary) but are completely...  Continue reading Finding subgroups in a graph using NetworkX and SPSS

Plotting interactions and non-linear predictions

When interpreting regression model coefficients in which the predictions are non-linear in the original variables, such as when you have polynomial terms or interaction effects, it is much simpler to make plots of the predicted values and interpret those than it is to interpret the coefficients directly. This came up in some discussion of interpreting polynomial...  Continue reading Plotting interactions and non-linear predictions

The mad scientist workflow: Some examples of using python and R within SPSS

I figured I would share some of the scripts I have been recently working on to produce a set of figures on a regular basis for reports. SPSS GGRAPH can not be directly parameterized within macro's (at least without a lot of work - see a counter example of Marta Garcia-Granero's macro for Continue reading The mad scientist workflow: Some examples of using python and R within SPSS