How to enter data into a panel workfile.
Moderators: EViews Gareth, EViews Moderator
Re: How to enter data into a panel workfile.
Sorry for that, this is the one.
- Attachments
-
- EViews.xlsx
- (43.18 KiB) Downloaded 1209 times
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13583
- Joined: Tue Sep 16, 2008 5:38 pm
Re: How to enter data into a panel workfile.
Japan has two unemployment series and no primary_balance series.
Re: How to enter data into a panel workfile.
Hello is there any tutorials how to work with panel?
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13583
- Joined: Tue Sep 16, 2008 5:38 pm
Re: How to enter data into a panel workfile.
Hei Gareth.
I'm using the second kind of data, but when I try to unstack, I receive the ID error (ID series do not uniquely identify workfile observations). Could you help me, please? The file goes attached.
Thank you!
I'm using the second kind of data, but when I try to unstack, I receive the ID error (ID series do not uniquely identify workfile observations). Could you help me, please? The file goes attached.
Thank you!
- Attachments
-
- TESTE.rar
- (758.52 KiB) Downloaded 1335 times
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13583
- Joined: Tue Sep 16, 2008 5:38 pm
Re: How to enter data into a panel workfile.
What is your cross-section identifier?
Re: How to enter data into a panel workfile.
Empresa (company, in English)What is your cross-section identifier?
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13583
- Joined: Tue Sep 16, 2008 5:38 pm
Re: How to enter data into a panel workfile.
You have 33 rows for each year, for each empresa value. Thus it cannot be structured as a panel.
Re: How to enter data into a panel workfile.
But is there a limit of rows? What do you suggest?
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13583
- Joined: Tue Sep 16, 2008 5:38 pm
Re: How to enter data into a panel workfile.
Panel data is defined by having a single observation for each data/cross-section combination. You don't have a single observation. You have 33.
Re: How to enter data into a panel workfile.
Ok, but there is something strange here. The structure of my file is the same as yours (second type, first page). Take a look:
Empresa = State (you have 8 states/rows, I have 473 companies/rows)
Variável = Variable (you have 6 rows, I have 33 variables/rows)
Yr1940 = 2012
Yr1941 = 2011
(...) (at this point you have 31 years/columns and I have just 10)
Ok, there is a difference in the number of rows and columns, but the structure is quite the same.
I'm sorry if my doubts are simple, but this is something new for me and I'm trying to follow your example to deal with my data. And I have to write an article for this weekend...
Thanks!
Empresa = State (you have 8 states/rows, I have 473 companies/rows)
Variável = Variable (you have 6 rows, I have 33 variables/rows)
Yr1940 = 2012
Yr1941 = 2011
(...) (at this point you have 31 years/columns and I have just 10)
Ok, there is a difference in the number of rows and columns, but the structure is quite the same.
I'm sorry if my doubts are simple, but this is something new for me and I'm trying to follow your example to deal with my data. And I have to write an article for this weekend...
Thanks!
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13583
- Joined: Tue Sep 16, 2008 5:38 pm
Re: How to enter data into a panel workfile.
Ah, the missing information was that Variavel was the series name. I should have seen that, my bad.
But the steps you need to take are identical to that given in the example. The only tricky bit is that your variable names are a bit long. Here's a program that will do it all for you:
But the steps you need to take are identical to that given in the example. The only tricky bit is that your variable names are a bit long. Here's a program that will do it all for you:
Code: Select all
wfopen e:\downloads\teste.xls colhead=1
pagestruct(freq=u, start=1)
pagestack num?
smpl if variavel = "TamanhoFirma1"
variavel = "TF1"
smpl if variavel = "TamanhoFirma2"
variavel = "TF2"
smpl @all
alpha names = @left(@makevalidname(variavel), 8)
pageunstack names empresa var01 @ id01
d id01
rename id01* *
Re: How to enter data into a panel workfile.
Gareth, thanks for your help.
Now I have a different doubt. I'm running this regression with panel data with 10 years of data and more than 300 companies. The regressions are OK and the results are quite interesting, but the I have JB 4309.864(0.0000), which means that the residuals are not normally distributed. I've seen that this is not necessarily a problem and I still can use the coefficients and the p-value. But, do I have to do other tests because of this result?
Another question: I'm trying to test heterocedasticity and multicollinearity, but when I go (Eq03, added file) in View / Residual Diagnosis, there is just the Histogram - Normality Test option available. How can I deal with this question?
Thank you!!
P.S.: Eq03 is the model I'm using, because it seems to be the best. File added.
Now I have a different doubt. I'm running this regression with panel data with 10 years of data and more than 300 companies. The regressions are OK and the results are quite interesting, but the I have JB 4309.864(0.0000), which means that the residuals are not normally distributed. I've seen that this is not necessarily a problem and I still can use the coefficients and the p-value. But, do I have to do other tests because of this result?
Another question: I'm trying to test heterocedasticity and multicollinearity, but when I go (Eq03, added file) in View / Residual Diagnosis, there is just the Histogram - Normality Test option available. How can I deal with this question?
Thank you!!
P.S.: Eq03 is the model I'm using, because it seems to be the best. File added.
- Attachments
-
- anpcont_v02_28mar2014.wf1
- (1.35 MiB) Downloaded 1253 times
Re: How to enter data into a panel workfile.
Hi Gareth
Have any idea how to insert data from excel attached to Eviews panel workfile? As you see in excel file, I have four variables in four sheets, cross-sections are companies, named from comp1 to comp482 in top row of each sheet ... I know too many cross-sections, so if Eviews can't handle it, do you have any suggestion about any other statistical packages able to handle such a huge data?? Thanks in advance.
Have any idea how to insert data from excel attached to Eviews panel workfile? As you see in excel file, I have four variables in four sheets, cross-sections are companies, named from comp1 to comp482 in top row of each sheet ... I know too many cross-sections, so if Eviews can't handle it, do you have any suggestion about any other statistical packages able to handle such a huge data?? Thanks in advance.
- Attachments
-
- Need to form as panel data1.rar
- (1.45 MiB) Downloaded 996 times
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13583
- Joined: Tue Sep 16, 2008 5:38 pm
Re: How to enter data into a panel workfile.
That data is nowhere near being huge :)
Somewhat simple EViews 8 program will get it in for you:
Somewhat simple EViews 8 program will get it in for you:
Code: Select all
%filename = "c:\temp\need to form as panel data.xls" 'file to be opened
%sheetnames = @tablenames(%filename) 'get the names of the sheets
%sheet = @word(%sheetnames, 1)
wfopen(type=excel, page=all) %filename range={%sheet} 'open first sheet
pagestack(page=allstk) comp? 'stack into a panel
alpha compname = "comp" + @str(var01) 'create an alpha series containing company names
pagestruct @date(date) compname 'structure the page by date and the company names
rename comp {%sheet} 'clean up
d var01 id01 date
'loop through remaining sheets, importing the variables
for !i=2 to @wcount(%sheetnames)
%sheet = @word(%sheetnames, !i)
pageload(type=excel, page={%sheet}) %filename range={%sheet}
pagestack(page={%sheet}stk) comp?
alpha compname = "comp" + @str(var01)
pagestruct @date(date) compname
rename comp {%sheet}
d var01 id01 date
copy {%sheet}stk\{%sheet} allstk\{%sheet}
next
'delete all the excess pages (uncomment below lines)
'for !i=2 to @wcount(%sheetnames)
' %sheet = @word(%sheetnames, !i)
' pagedelete {%sheet}
' pagedelete {%sheet}stk
'next
pageselect allstk
Return to “General Information and Tips and Tricks”
Who is online
Users browsing this forum: No registered users and 1 guest
