<< q2a Time series reshape >>

grocer >> Time series > q2m

q2m

expand a quarterly series into a monthly one

CALLING SEQUENCE

tsout=q2m(tsin)

PARAMETERS

Input

*s tsin = a quarterly time series

Output

* tsout = the corresponding monthly time series

DESCRIPTION

Expands a quarterly series into a monthly one, by duplicating 3 times the quarterly values.

EXAMPLE

x = reshape([1:35],'1978q1') // ceate a quarterly ts
y = q2m(x) 
// gives an montly ts, from 1978m1 to 2012m12 with values 1 for all months of the first quarter of year 1978, 
// 2 for all months of the second quarter of year 1979...

AUTHOR

Eric Dubois 2020

Report an issue
<< q2a Time series reshape >>