* OLS Model for Child Mortality
*
* Keywords:
* regression, ols, inverse, reciprocal, per capita gnp, child, mortality,
* graph
*
* Description:
* We illustrate how to estimate a Reciprocal OLS Model for Child Mortality
* 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.6 (page 167)
*
sample 1 64
read(data_6.6.shd) cm flfp pgnp tfr
* Creating a plot of cm against pgnp
graph cm pgnp
* Generating an an inverse of pgnp in a new variable - invpgnp:
genr invpgnp = 1/pgnp
*Running an OLS regression of cm on invpgnp, specifying that it's a
* linear-inverse regression:
ols cm invpgnp / rstat lininv
stop