Dear All,
I have a workfile structured as a panel. I would like to do some manipulations in the time series dimension. For example, for the variable X, I want to take (X-X(-1))/mean(X). Is it possible? This should be done for every cross section.
I attached the workfile. I may want to do it with the series "sale"
I hope it makes sense.
Thanks in advance,
Fabio
Panel Data - Time Series Manipulation
Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason
-
monstromart
- Posts: 1
- Joined: Wed Feb 08, 2023 2:44 pm
Panel Data - Time Series Manipulation
- Attachments
-
- firm_xvexample.wf1
- (1.96 MiB) Downloaded 2121 times
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13600
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Panel Data - Time Series Manipulation
Code: Select all
series mysales = (sale-sale(-1))/@meansby(sale, @crossid)
Who is online
Users browsing this forum: No registered users and 2 guests
