Page 1 of 1

time series data manipulation

Posted: Sun Oct 02, 2011 8:16 pm
by satish1987
hi guys,

I am new to eviews , i am having some trouble with declaring and manipulating time series variables. I have a time series data and i want to use this formula to create a new variable.

stock= stock(t)-stock(t-1)

My data is quarterly so i just used the formula stock= stock(1)-stock(-1) thinking it might work. What eviews did was subtract the third quarter with my first quarter instead of the second with first! Is my formula wrong? if so please help!

Re: time series data manipulation

Posted: Sun Oct 02, 2011 9:13 pm
by EViews Gareth
What does:

Code: Select all

stock= stock(t)-stock(t-1)
mean?

Re: time series data manipulation

Posted: Mon Oct 03, 2011 2:52 am
by satish1987
basically i have a data like this

q1 4
q2 5
q3 2
q4 3

and i want to create a new variable which basically subtracts current period by previous period. For this sample i would get three observations.

1) q2-q1 1
2) q3-q2 -3
3) q4-q3 1

In order to do this i need to enter a formula to help me , i want help with that!

Thanks!

sat

Re: time series data manipulation

Posted: Mon Oct 03, 2011 6:26 am
by startz
q -q(-1)

Re: time series data manipulation

Posted: Fri Nov 18, 2011 8:47 am
by EViews Gareth
We can only help if you tell us what it is you're trying to do.

Re: time series data manipulation

Posted: Sun Jan 01, 2012 7:36 pm
by drhal
when i use q-q(-1) ........what does the -1 stand for?......

Re: time series data manipulation

Posted: Sun Jan 01, 2012 10:05 pm
by startz
when i use q-q(-1) ..what does the -1 stand for?
One period lag.