Dummy variable illegal or reserved name

For requesting general information about EViews, sharing your own tips and tricks, and information on EViews training or guides.

Moderators: EViews Gareth, EViews Moderator

Posts: 1
Joined: Wed Mar 14, 2018 11:31 am

Dummy variable illegal or reserved name

Postby mmatsira » Wed Mar 14, 2018 12:44 pm


I looked up discussions for both dummies and illegal name, but still I didn't find what I am looking for.
I have imported from Excel panel data that contain years with positive and negative values, and I try to create a binary dummy for positive non-positive years and one for negative non-negative years.
The command I am using is this: genr dumneggr_? = ?_gr<0
where dumneggr corresponds to dummy negative growth the _? corresponds to the name of the country and ?_gr is the name of the country again plus the growth extension.
After using this, I get and illegal or reserved name error.
Could you, please, give me some hints what I might be doing wrong?
Many thanks in advance.

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

Re: Dummy variable illegal or reserved name

Postby EViews Gareth » Wed Mar 14, 2018 1:35 pm

Are you in a panel or in a pool?
Follow us on Twitter @IHSEViews

Return to “General Information and Tips and Tricks”

Who is online

Users browsing this forum: No registered users and 2 guests