Johan Osterberg - Product Engineer

Basic regression in Stata 2

June 11, 2019

In the previous post we looked at regression in Stata by exploring two commands, correlate and pwcorr. In this brief post we’ll explore pwcorr further by adding an option to verify the statistical significance of the relationships under test. Let’s load up the same data again, and append the sig option to the pwcorr command:

sysuse nlsw88, clear pwcorr collgrad wage c_city, sig

Looking at the result we can see that all of the relationships are of statistic significance (they are all lower than 0.05), especially so the relationship between collgrad and wage.

Result of pwcorr command

Johan Osterberg

Written by Johan Osterberg who lives and works in Gothenburg, Sweden as a developer specialized in e-commerce. Connect with me on Linkedin