* Reference: Chapter 9 of * Jeffrey M. Wooldridge, Introductory Econometrics: A Modern Approach, * South-Western College Publishing, 2000. SAMPLE 1 32 READ (RDCHEM.shd) rd sales profits rdintens profmarg salessq lsales lrd * Example 9.8 * Summary statistics STAT rdintens sales profmarg * Scatterplot - Figure 9.1, p. 302. GRAPH rdintens sales / NOKEY * OLS equation * The LIST option on the OLS command gives a listing of the * fitted values and estimated residuals. OLS rdintens sales profmarg / LIST * Drop the firm with annual sales in excess of $35 billion. SKIPIF (sales.gt.35000) STAT rdintens sales profmarg OLS rdintens sales profmarg / LIST * Turn off the SKIPIF command SET NOSKIP * Example 9.9 * Log transformations GENR lrd=LOG(rd) GENR lsales=LOG(sales) * OLS estimation OLS lrd lsales profmarg * Test the null hypothesis H0: B1=1. * SHAZAM reports a p-value for a 2-sided test. TEST lsales=1 * Set the SKIPIF commands previously specified. SET SKIP OLS lrd lsales profmarg TEST lsales=1 STOP