* OLS Model for Expenditure on Services * * Keywords: * regression, ols, log, growth, expenditure, services, graph * * Description: * We illustrate how to estimate Log-Linear OLS Growth Model for * Expenditure on Services and create a graph * * Author(s): * Skif Pankov * * Source: * Damodar N. Gujarati and Dawn C. Porter, Basic Econometrics - 5th Edition * McGraw-Hill International Edition, Chapter 6, Example 6.4 (page 163) * sample 1 55 * Reading the datafile and naming the variables - we use the same datafile as * in Example 3.2 read(data_3.2.shd) foodexp totalexp * Generating a log of totalexp genr lnexp = LOG(totalexp) * Running an OLS regression of foodexp on lntotalexp: ols foodexp lnexp / rstat linlog * Creating a plot of foodexp against totalexp: graph foodexp totalexp stop