Name

subper — restrict a ts to a subperiod

CALLING SEQUENCE

tsout=subper(tsin,arg1,[arg2])

PARAMETERS

Input

• tsin = a timeseries

• arg1= either a (1 x 2) vector of dates strings or a dates strings, representing the begining of the subperiod

• arg2= (if arg1 was a dates string), a dates string, representing the end of the subperiod

Output

• tsout = the timeseries over the subperiod

DESCRIPTION

Restricts a timeseries to a subperiod.

EXAMPLE

y = subper(x,'1985q1','1990q4')
 
Assuming that the ts x is defined over a period including the interval ['1985q1';'1990q4'], y is x restricted to the period ['1985q1';'1990q4']. 

               

AUTHOR

Eric Dubois 2002