<< a2m Time series car2freq >>

grocer >> Time series > a2q

a2q

expand an annual series into a quarterly one

CALLING SEQUENCE

tsout=a2q(tsin)

PARAMETERS

Input

* tsin = an annual time series

Output

* tsout = the corresponding quarterly time series

DESCRIPTION

Expands an annual series into a quarterly one, by duplicating 4 times the annual values.

EXAMPLE

x = reshape([1:35],'1978a') // ceate an annual ts
y = a2q(x) 
// gives an montly ts, from 1978q1 to 2012q4 with values 1 for all quarters of year 1978, 
// 2 for all quarters of year 1979...

AUTHOR

Eric Dubois 2020

Report an issue
<< a2m Time series car2freq >>