Hi,
I’d like to add two strings together in order to define the sample.
The following codes work well :
%s = "@all if dep_invest>0"
%s2 = "and rrf>0"
%s3 = @wunion(%s,%s2)
smpl %s3
But when I add a third variable (‘autofi’ here),
%s = "@all if dep_invest>0"
%s2 = "and rrf>0 and autofi>0"
%s3 = @wunion(%s,%s2)
smpl %s3
I get an error message like « error in sample: syntax error in "smpl @all if dep_invest>0 and rrf>0 autofi>0»
note that a simple :
%s = "@all if dep_invest>0 and rrf>0 and autofi>0"
smpl %s
works.
Any clue ?
Thanks in advance! :)
defining a sample with @wunion
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13600
- Joined: Tue Sep 16, 2008 5:38 pm
Re: defining a sample with @wunion
Don't use @wunion. Just add the strings together with the + symbol
Re: defining a sample with @wunion
It works. Thanks a lot !
Cheers
J
Cheers
J
Who is online
Users browsing this forum: No registered users and 2 guests
