help for diff log

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

ecofin
Posts: 182
Joined: Fri May 10, 2013 11:24 am

help for diff log

Postby ecofin » Tue Jun 03, 2014 6:46 am

hi
in practice when i calculate the difference of the logarithm i use dlog(x) or i generate series, first i calculate the logarithm (genr y1=log(x)) second i use the difference ( genr y2=d(y1)), but if i would like to calculate the logarithm for all the series when i have just two observation in the first column and all the difference for the second column. see the picture below.
i don't know what i do :(
would you like to help me
best regrads
Attachments
arfima data from stata.png
arfima data from stata.png (44.56 KiB) Viewed 3765 times
stock.wf1
(83.95 KiB) Downloaded 273 times

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: help for diff log

Postby EViews Gareth » Tue Jun 03, 2014 7:47 am

Code: Select all

smpl @first+2 @last log_x = log_x(-1)+r

ecofin
Posts: 182
Joined: Fri May 10, 2013 11:24 am

Re: help for diff log

Postby ecofin » Tue Jun 03, 2014 9:40 am

thanks for your help Mr Gareth :D


Return to “Estimation”

Who is online

Users browsing this forum: No registered users and 2 guests