Panel Data - Time Series Manipulation

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Jason, EViews Steve, EViews Moderator

monstromart
Posts: 1
Joined: Wed Feb 08, 2023 2:44 pm

Panel Data - Time Series Manipulation

Postby monstromart » Thu Feb 09, 2023 7:27 am

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
Attachments
firm_xvexample.wf1
(1.96 MiB) Downloaded 113 times

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

Re: Panel Data - Time Series Manipulation

Postby EViews Gareth » Thu Feb 09, 2023 7:49 am

Code: Select all

series mysales = (sale-sale(-1))/@meansby(sale, @crossid)
Follow us on Twitter @IHSEViews


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 12 guests