I have a workfile, consisting of several pages. Now I want to run a regression using variables of different pages, for example, the simple regression: ar01 c smc
Is this possible or should I copy one variable from one page to another?
I have made sure that ar01 and smc have the same sample and range, but if I do copy ar01 to the page that contains the smc-variable, some values appear as "NA"..
regression using variables of different pages
Moderators: EViews Gareth, EViews Jason, EViews Steve, EViews Moderator
regression using variables of different pages
- Attachments
-
- proxies_2004_2005_juist.wf1
- (64.25 KiB) Downloaded 243 times
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13317
- Joined: Tue Sep 16, 2008 5:38 pm
Re: regression using variables of different pages
You will need to copy them from one page to another, but there are a few snags:
1) 'year' on the page Ars is a number while 'var01' in the page 'meeste_proxies' is a date. So the first step is to make a variable 'yyyy' in Ars that is a date by
2) Because the variables containing dates aren't called the same thing in the two pages, you need to explicitly name the id series during the copy: otherwise EViews is going to assume that you only want to match on country
3) There are spelling mistakes in the country names in the country series in meeste_proxies: Argentinia, Saoudi Arabia... These have to be fixed before they will be able to be matched.
1) 'year' on the page Ars is a number while 'var01' in the page 'meeste_proxies' is a date. So the first step is to make a variable 'yyyy' in Ars that is a date by
Code: Select all
series yyyy=@makedate(year,"yyyy")
2) Because the variables containing dates aren't called the same thing in the two pages, you need to explicitly name the id series during the copy: otherwise EViews is going to assume that you only want to match on country
3) There are spelling mistakes in the country names in the country series in meeste_proxies: Argentinia, Saoudi Arabia... These have to be fixed before they will be able to be matched.
Follow us on Twitter @IHSEViews
Who is online
Users browsing this forum: No registered users and 27 guests