Creating Dummy Variable in Panel

For technical questions regarding estimation of single equations, systems, VARs, Factor analysis and State Space Models in EViews. General econometric questions and advice should go in the Econometric Discussions forum.

Moderators: EViews Gareth, EViews Moderator

morak5
Posts: 16
Joined: Thu Jan 16, 2014 2:19 pm

Creating Dummy Variable in Panel

Postby morak5 » Mon Feb 02, 2015 4:53 pm

Hi there,

I have a panel dataset with two cross-section identifiers (country, industry) and would like to create a dummy variable for country-year pairs (e.g. USA-1990 = 1, FRA-2000 = 1, etc ...). Could you please suggest a way to create this variable (e.g. using @expand or @recode)? I have 20 countries over 30 years in the data. Thanks in advance.

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

Re: Creating Dummy Variable in Panel

Postby EViews Gareth » Mon Feb 02, 2015 4:55 pm

@expand(@crossid, @date)

morak5
Posts: 16
Joined: Thu Jan 16, 2014 2:19 pm

Re: Creating Dummy Variable in Panel

Postby morak5 » Tue Feb 03, 2015 7:45 am

Many thanks, Gareth!


Return to “Estimation”

Who is online

Users browsing this forum: No registered users and 2 guests