My Authors
Read all threads
Teaching students how regression analysis works?

I plan to do so visually (using an approach inspired by @paulvanderlaken)

How did I do it?

[THREAD]
Since I'm teaching a class on quantifying war, I'll start with annual data on number of wars (of all types: inter; intra; & extra) and the number of major powers. The data come from the Correlates of War project (correlatesofwar.org)
I'll then plot the data
Eyeballing it, seems clear that there is a negative relationship between number of major powers in the system and the propensity of war

Adding a trend line confirms it
So we should score one for Morton Kaplan, right (i.e. multipolarity is more peaceful than bipolarity)?

Not quite...
Could it be that the era of bipolarity (and then unipolarity) -- after 1945 -- overlapped with a BIG omitted variable? 🤔
That seems to be the case!

The red dots below are observations from the nuclear era, the blue dots are from before the nuclear era
So I should probably "control" for "nuclear era"

How?
I begin by computing the average number of major powers during the nuclear era (1.9) and the average number of major powers during the non-nuclear era (5.3)
I then compute the average number of major powers for the whole sample (4.6) and then recenter both groups on the overall sample mean (by subtracting (1.9-4.6) from each observation in the "nuclear era" and subtracting (5.3-4.6) from each observation in the "non-nuclear era")
Next, I compute the average number of major wars during the nuclear era (15.4) and the average number of wars during the non-nuclear era (7.7)
I then compute the average number of wars for the overall sample (10.3) and then recenter both groups on the overall sample mean (by subtracting (15.4-10.3) from each observation in the "nuclear era" and subtracting (7.7-10.3) from each observation in the "non-nuclear era")
After all that, let's take another look at the trend line!
As you might expect, this "flatted" the line, meaning, once we control for the nuclear era, the relationship b/w # of wars and # of major powers is quite weak.
As a sanity check, I ran the regression models
Sure enough, the model without controls produced...
...while the model with the control produced 👇
Overall, this seems like a nice way of illustrating what control variables do: they show the average association between X and Y after you remove the average variation explained by C

[END]
Missing some Tweet in this thread? You can try to force a refresh.

Enjoying this thread?

Keep Current with Paul Poast

Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

Twitter may remove this content at anytime, convert it as a PDF, save and print for later use!

Try unrolling a thread yourself!

how to unroll video

1) Follow Thread Reader App on Twitter so you can easily mention us!

2) Go to a Twitter thread (series of Tweets by the same owner) and mention us with a keyword "unroll" @threadreaderapp unroll

You can practice here first or read more on our help page!

Follow Us on Twitter!

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just three indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3.00/month or $30.00/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!