A string variable

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

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

romiromero
Posts: 7
Joined: Tue Sep 01, 2009 9:08 am

A string variable

Postby romiromero » Tue Sep 01, 2009 2:01 pm

Hello,

I have this question:

I am working with panel data (by the way I'm using EViews 6.0), by default this program uses crossid as identifier for the cross section; however, I'd like to know if it is possible to replace it by the names of the cross sections, that is, if my cross section unit is the name of countries I'd like that cross section 1 be named Argentina, cross section 2 Chile, and so on...How can I do that?

Thank you very much in advance.
Best regards,

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

Re: A string variable

Postby EViews Gareth » Tue Sep 01, 2009 2:08 pm

Yep. Assuming you have the names of the countries in an alpha series, just go to Proc->Structure/Resize Current Page, and then change the name of the Cross section ID series from crossid to the name of your alpha series.

romiromero
Posts: 7
Joined: Tue Sep 01, 2009 9:08 am

Re: A string variable

Postby romiromero » Tue Sep 01, 2009 3:28 pm

Thank you for your answer, but what is the meaning of an alpha series? How can I convert a "normal" series in an alpha one?
Best regards,

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

Re: A string variable

Postby EViews Gareth » Tue Sep 01, 2009 3:35 pm

You're probably best off reading the manual with regards to alpha series. Chapter 7, section "Alpha series", User Guide I, is a good place to start.

romiromero
Posts: 7
Joined: Tue Sep 01, 2009 9:08 am

Re: A string variable

Postby romiromero » Tue Sep 01, 2009 3:36 pm

OK, I got it!
Thank you again.


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests