Page 1 of 1

selected range

Posted: Mon Jul 06, 2015 7:51 am
by raainem
Hi there,

I do not seem to find the way for something very trivial. How to compute stuff for selected observations of a series? E.g. the series / page spans from 1980q1 to 2014q4, and wanted be its mean over until 2000q4.

Thanks a lot.

Re: selected range

Posted: Mon Jul 06, 2015 7:59 am
by startz

Code: Select all

smpl 1980q1 2000q4
or

Code: Select all

@mean(x,"1980q1 2000q4")