* open log file
log using gpa_example_1.log, replace
* open gpa_example_1, 141 observations from
* college freshman
use gpa_example_1
* get means of key variables
sum college_gpa act hs_gpa
* get correlations between key variables
corr college_gpa act hs_gpa
*run regression with one variable
reg college_gpa act
*run synthetic regression of hs_gpa on act
reg hs_gpa act
* run multivariate regression
reg college_gpa act hs_gpa
* close log file
log close
* see ya