1 / 6

# Econometrics (NA3011) - PowerPoint PPT Presentation

Econometrics (NA3011). Reza Mortazavi 2014 Stata Lecture 4. Explaining ice cream demand. use http ://users.du.se/~ rem/icecream.dta Browse tsset time

I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.

## PowerPoint Slideshow about ' Econometrics (NA3011)' - marvin-boyer

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.

- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript

### Econometrics (NA3011)

Reza Mortazavi

2014

Stata Lecture 4

Explaining ice cream demand

• use http://users.du.se/~rem/icecream.dta

• Browse

• tsset time

• Note: ”tsset ” is the commandthatinforms the data aretime series, the variable ”time” in this data set is the timevariable.

• Do we have any reason to suspect autocorrelation (also called serial correlation)?

• regr cons price income

• predict resid,residual

Explaining ice cream demand

• twoway (scatter resid time, yline(0))

• regr cons price income temp

• predict ehat,residual

• twoway (scatter ehat time, yline(0))

• Still autocorrelation

• estatdwatson

• H0: H1:

• At 5% significancelevelwehave (for T=30, K=4), . So werejectH0: .

• estatbgodfrey

• This so called Breusch-Godfrey test is more general and is sufficient for this course. What is the conclusion?

• prais cons price income temp, rhotype(regress) corc

• gen lagtemp=L.temp

• regr cons price income temp lagtemp

• estatdwatson

• estatbgodfrey

Robust (Newey-West HAC) standard errors

• newey cons price income temp, lag(1)

• newey cons price income temp, lag(2)