Page 1 of 1

IF is not defined

Posted: Mon Sep 07, 2020 2:37 am
by dsdsdsdsd
hello ...

I am getting an error message when I type the following into the command line:

Code: Select all

alpha country country = "AU" if crossid = 1
if I remove the

Code: Select all

if crossid = 1
part, the command does fill everything with "AU".

I am using eViews 11 University Edition.

- any thoughts
- thanks, Shannon

Re: IF is not defined

Posted: Mon Sep 07, 2020 6:21 am
by EViews Gareth
You want the @recode command

Re: IF is not defined

Posted: Mon Sep 07, 2020 3:20 pm
by dsdsdsdsd
like this:

Code: Select all

@recode country = "9" if crossid = 1
in the command window??

- thanks, Shannon

Re: IF is not defined

Posted: Mon Sep 07, 2020 3:23 pm
by EViews Gareth
You're probably best off reading through the learning resources available.
http://eviews.com/illustrated/illustrated.html
(Chapter 4 especially)

http://eviews.com/Learning/index.html
(Chapter 3)

Re: IF is not defined

Posted: Mon Sep 07, 2020 3:31 pm
by dsdsdsdsd
----------------------------------------
this worked:

Code: Select all

COUNTRY=@recode(CROSSID=1,"bbb",COUNTRY)
----------------------------------------