Hi Dave
Note that you first need to convert your data matrices into (multivariate) tseries objects (time series objects). Let's say
X is your NbyK matrix with monthly data organized columnwise (i.e. there are K time series with N periods of observations in each).
Convert X to a tseries object
>> XX = tseries( mm(2010,1), X )
where mm(2010,1) is an IRIS command to create a monthly date (here, January 2010) which indicates the start date of your series (of course, use whatever date is relevant in your case). The variables
XX is now a tseries object.
Then, run x12 on the new variable XX (it will be, in fact, a call to
x13 but as Michael said, the name of the procedure is still x12 for backward compatibility reasons)
>> XXsa = x12(XX);
This is a basic call to x13 . There are tons of options you can use to modify the behavior, see
help tseries/x12 or idoc tseries/x12 or the IRIS reference manual.
The output argument, XXsa , is a tseries object with seasonally adjusted data. To convert the tseries object back to a plain matrix, simply type
>> Xsa = double(XXsa);
Hope this helps.
Best,
Jaromir
