Page 1 of 1

How to write one statement with arguments as a sample

Posted: Wed Feb 15, 2012 8:24 am
by SAMCYR
Dear all,

I would like to write only one statement instead of creating 2 string variables to define the sample to be used in order to calculate the mean for the last observation of gdp (series) and 2 lags:
It should be like this but returns an error: Illegal date

show @mean(gdp, @otod(@ilast(gdp(2))) @otod(@ilast(gdp)))

Thanks in advance

Re: How to write one statement with arguments as a sample

Posted: Wed Feb 15, 2012 8:44 am
by EViews Gareth
Probably can't be done - I think you'll have to use two string variables.