Reshaping data into panel data
Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason
Reshaping data into panel data
Hello,
Have a problem with my data! The dates are stuck with the variables i mean for each cross section in row i have the variable and the date stack in the same column
I dant to get for each cross section the dates in row and the variables in column
How can i do this
Thank you
Have a problem with my data! The dates are stuck with the variables i mean for each cross section in row i have the variable and the date stack in the same column
I dant to get for each cross section the dates in row and the variables in column
How can i do this
Thank you
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Reshaping data into panel data
This post is quite indecipherable.
Re: Reshaping data into panel data
Sorry
i'll share my data as soon as possible. I don't have it on my phone
Thank you
i'll share my data as soon as possible. I don't have it on my phone
Thank you
Re: Reshaping data into panel data
hello
this is my data. what is in yellow is my cross sections and what is in yellow are my cross sections and what is in blue is the variables with dates that I want to separate
thank you
this is my data. what is in yellow is my cross sections and what is in yellow are my cross sections and what is in blue is the variables with dates that I want to separate
thank you
- Attachments
-
- data.xlsx
- (10.68 KiB) Downloaded 440 times
Re: Reshaping data into panel data
I forgot to mention that the data is in the "data" sheet and what I want to get is in sheet 2 named "result"
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Reshaping data into panel data
I still have no idea what you want.
-
startz
- Non-normality and collinearity are NOT problems!
- Posts: 3797
- Joined: Wed Sep 17, 2008 2:25 pm
Re: Reshaping data into panel data
For a particular cross-section, the OP has the data for the variable aadcrobs in 3 columns, one each for 2012, 2013, and 2014.
Re: Reshaping data into panel data
ok, can you please see the attached files "data1" is the initial file and what I want to have is "data2".
number index is the cross sections but as you can see in "data1" variable (ETTAR and others that you can't see on the capture) are gathered with the dates
number index is the cross sections but as you can see in "data1" variable (ETTAR and others that you can't see on the capture) are gathered with the dates
- Attachments
-
- Data2.docx
- (187.51 KiB) Downloaded 655 times
-
- data1.docx
- (168.72 KiB) Downloaded 490 times
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Reshaping data into panel data
Can you provide the files?
Re: Reshaping data into panel data
I hope it will help :(
- Attachments
-
- data.xlsx
- (54.12 KiB) Downloaded 681 times
-
- result.xlsx
- (12.82 KiB) Downloaded 798 times
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Reshaping data into panel data
Code: Select all
wfopen data.xlsx
d *_year*
pagestack 2007 2008 2009 2010 2011 2012 2013 2014
rename d_th_eur_ dd_th_eur_
rename *_th_eur_ *
pagestruct index_number @date(var01)
Re: Reshaping data into panel data
where should I put this? I import data to eviews first ?
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Reshaping data into panel data
You can copy each line into the command window one at a time.
Re: Reshaping data into panel data
I don't know what to tell you realy you've saved my live
thank you so much . I was looking for a solution for a week now
thank you for what you do for the others
thank you so much . I was looking for a solution for a week now
thank you for what you do for the others
Who is online
Users browsing this forum: No registered users and 1 guest
