UNIVERSITY OF CALIFORNIA, LOS ANGELES
Department of Economics
Economics 143 (Cameron) - Applied Regression
Analysis
Computing Lab Session #8: Serially Correlated
Errors
Goals for this Lab:
A. For this lab, we will be using the data (failn.dat
and mfgprod.dat) and
the initial program file (fail.sha) employed in the
classroom handout on serially correlated errors. The
dependent variable is number of business failures per month in the US (from
January 1984 through October 1997; CITIBASE variable FAILN). The main explanatory
variable being considered is total manufacturing production, 1987=100, not
seasonally adjusted; CITIBASE variable IPMFG6).
- Introduce access to the CITIBASE inventory of
time-series data
- Explore use of DWPVALUE and ORDER= options on OLS command
- Explore consequences of failing to recognize AR(1) errors in regression
- Investigate higher-order correlation patterns in regression errors
- Save residuals from initial naive OLS
- Create lagged residuals
- Regress current on lagged residuals
- Implications for ORDER= option on AUTO command
- Use of DLAG option if first explanatory variable is lagged dependent variable
(a dynamic model)
- Review of the process of iterations to convergence on the rho
parameter(s)
B. Explore the consequences of inadvertently trying to run a regression on what
is actually an accounting relationship. For example, running total cost of production
on the separate costs of skilled labor, unskilled labor, materials, capital equipment
rentals, etc.
- Examine the small program contained in accountg.sha. Observe
that the program creates one hundred observations on a set of four statistically independent
variables: x, z, w, and v. The "dependent variable" y is then formed as being approximately
the sum of these four constituent variables
- Run the program using the default value of the dispersion in the normally distributed
error term. Think about what the coefficients should be. Is your intuition confirmed?
- Try the program with different values of "sig," implying different proportions of y being
unmeasured by the components x, z, w, and v. What happens to the slope coefficients?
What about the key hypothesis tests?
Update date: 11/30/98; Prepared by: Trudy Ann Cameron; Site Index