Search found 6 matches

by einsler
Tue Oct 12, 2010 1:27 pm
Forum: Econometric Discussions
Topic: Least Squares & Autocorrelation
Replies: 1
Views: 4437

Least Squares & Autocorrelation

I am having great success developing an econometric model for interest elasticity and excess reserves, but I need some advice on how to estimate my standard errors. My data is time-series. Because of this I have been estimating least squares with Newey-West -- ls(n) -- standard errors. I would like ...
by einsler
Wed Apr 07, 2010 2:26 pm
Forum: Programming
Topic: Scalar Conundrum
Replies: 3
Views: 4811

Scalar Conundrum

I was wondering if anyone could help me and some of my classmates. We are using E-Views 6. we have input the following code: !zhat=c(1)+c(2)*@mean(trated)+c(3)*@mean(tspeedd) !prob=@cnorm(!zhat) It returned the error: "!ZHAT is not defined" With our understanding of E-Views, we have no ide...
by einsler
Tue Feb 23, 2010 9:13 am
Forum: Programming
Topic: Generating a New Variable that Includes a Lag of Itself
Replies: 7
Views: 15461

Re: Generating a New Variable that Includes a Lag of Itself

I just tested the code that you gave me and it just produced a vector of NA's. I think it may be due to the fact that the samples might be off. Here is the code that I used: smpl 1 42 genr lninvpc=log(invpc) ls lninvpc c t genr lninvpc_detrend=lninvpc-(c(1)+c(2)*t) ls lninvpc_detrend c gprice lninvp...
by einsler
Fri Feb 19, 2010 2:34 pm
Forum: Programming
Topic: Generating a New Variable that Includes a Lag of Itself
Replies: 7
Views: 15461

Re: Generating a New Variable that Includes a Lag of Itself

Thank you so much Gareth. I will try this soon and I expect it to work.

I had assumed that I needed a genr command. I am not familiar with the series command.

Also, would the code still work if I replaced the 0.606 with a coefficient from the last regression - c(3) or c(2) for example?
by einsler
Fri Feb 19, 2010 2:15 pm
Forum: Programming
Topic: Generating a New Variable that Includes a Lag of Itself
Replies: 7
Views: 15461

Re: Generating a New Variable that Includes a Lag of Itself

The first value of v is equal to the first value of e
by einsler
Fri Feb 19, 2010 1:41 pm
Forum: Programming
Topic: Generating a New Variable that Includes a Lag of Itself
Replies: 7
Views: 15461

Generating a New Variable that Includes a Lag of Itself

I would like to generate a series of the following formula: v = 0.606 * v(-1) + e e is simply the residual of a previous regression, which I can obtain from resid, but the problem with this formula is that it contains a lag of itself - the v(-1) term. Is there any programming code that can take care...

Go to advanced search