Hello Statalisters,
I am dealing with quarterly time-series data (containing GDP, revenues, and expenditures), I am in the process of seasonal adjustment using x-12-arima (sax12). I have followed the examples provided by stata-help (Seasonal adjustment for a multiseries). After running the commands, there should be a couple of files created for each variables (one example is Exp.d11 final seasonally adjusted data). The issue I faced was that not all required files were created. So, files like (d10 d11 d12 d13 isf isa itn iir) were not created, although, these are what I need. I run the following codes after setting up the directory, the data, and type of time series:
foreach v of varlist GDPoil - Exp {
sax12 `v', satype(single) comptype(none) transfunc(auto) regpre(const) outauto(ao ls) outlsrun(2) ammaxlag(2 1) ammaxdiff(1 1) ammaxlead(12) x11seas(x11default) sliding history justspc noview
} # although it run successfully, it did not create all files for each variables as expected
sax12, satype(mta) mtaspc("GDPoil GDPnon Revoil Exp") mtafile(oil.mta) compsa inpref(newoil.spc) compsadir transfunc(log) regpre(const lpyear) outauto(ao ls) outlsrun(0) x11mode(mult) x11seas(x11default) sliding history
sax12im oil.out, ext(d10 d11 d12 d13 isf isa itn iir) # it reported an error: files do not exist, which is true!
I would greatly appreciate your cooperation!
I am dealing with quarterly time-series data (containing GDP, revenues, and expenditures), I am in the process of seasonal adjustment using x-12-arima (sax12). I have followed the examples provided by stata-help (Seasonal adjustment for a multiseries). After running the commands, there should be a couple of files created for each variables (one example is Exp.d11 final seasonally adjusted data). The issue I faced was that not all required files were created. So, files like (d10 d11 d12 d13 isf isa itn iir) were not created, although, these are what I need. I run the following codes after setting up the directory, the data, and type of time series:
foreach v of varlist GDPoil - Exp {
sax12 `v', satype(single) comptype(none) transfunc(auto) regpre(const) outauto(ao ls) outlsrun(2) ammaxlag(2 1) ammaxdiff(1 1) ammaxlead(12) x11seas(x11default) sliding history justspc noview
} # although it run successfully, it did not create all files for each variables as expected
sax12, satype(mta) mtaspc("GDPoil GDPnon Revoil Exp") mtafile(oil.mta) compsa inpref(newoil.spc) compsadir transfunc(log) regpre(const lpyear) outauto(ao ls) outlsrun(0) x11mode(mult) x11seas(x11default) sliding history
sax12im oil.out, ext(d10 d11 d12 d13 isf isa itn iir) # it reported an error: files do not exist, which is true!
I would greatly appreciate your cooperation!
Comment