How to write one statement with arguments as a sample
Posted: Wed Feb 15, 2012 8:24 am
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
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