lagging logarithmic variable

For technical questions regarding estimation of single equations, systems, VARs, Factor analysis and State Space Models in EViews. General econometric questions and advice should go in the Econometric Discussions forum.

Moderators: EViews Gareth, EViews Moderator

esterhatesbirds
Posts: 4
Joined: Tue Apr 08, 2014 12:57 am

lagging logarithmic variable

Postby esterhatesbirds » Mon Apr 21, 2014 4:04 am

What is the command for lagging an independent variable that I also take the logarithm on?
For example: If have the variable pbeef, when estimating an equation, do i write log(pbeef(-1)) or how should it be written?

also, when Writing log(pbeef) is natural or base ten logarithms used?

trubador
Did you use forum search?
Posts: 1520
Joined: Thu Nov 20, 2008 12:04 pm

Re: lagging logarithmic variable

Postby trubador » Mon Apr 21, 2014 5:34 am

Yes, log(y(-1)) is the correct syntax. In order to see it for yourself, you can always create a separate variable, series ln_y1 = log(y(-1)), and compare it to series ln_y = log(y).

And log denotes the natural logarithm in EViews. You can always use the command window to check or verify such operations: scalar z = log(10) or scalar z = log(exp(1)).

If you do not enjoy looking up help files, Chapter 4 of EViews Illustrated has a very nice discussion on data transformations...


Return to “Estimation”

Who is online

Users browsing this forum: No registered users and 2 guests