1 / 6

Econometrics (NA3011)

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

Download Presentation

Econometrics (NA3011)

An Image/Link below is provided (as is) to download presentation 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. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Econometrics (NA3011) Reza Mortazavi 2014 Stata Lecture 4

  2. 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

  3. 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: .

  4. GLS • 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

  5. Introducing dynamics • gen lagtemp=L.temp • regr cons price income temp lagtemp • estatdwatson • estatbgodfrey

  6. Robust (Newey-West HAC) standard errors • newey cons price income temp, lag(1) • newey cons price income temp, lag(2)

More Related