* OLS Model for Mean Hourly Wage
*
* Keywords:
* regression, ols, wage, education, graph
*
* Description:
* We illustrate how to estimate a Linear OLS Model for Mean Hourly Wage
* and create a graph of the data
*
* Author(s):
* Skif Pankov
*
* Source:
* Damodar N. Gujarati and Dawn C. Porter, Basic Econometrics - 5th Edition
* McGraw-Hill International Edition, Chapter 2, Example 2.1 (page 46)
*
sample 1 13
* Reading the datafile and name variables
read (data_2.1.shd) yrssch avwage
* Generating a graph of av_wage against yrs_sch, specifying not to include
* the data keys and to plot a line through the datapoints only
graph avwage yrssch / nokey lineonly
stop