The path to x12 or x13 binary. If None, the program will attempt
to find x13as or x12a on the PATH or by looking at X13PATH or
X12PATH depending on the value of prefer_x13.
If True, will look for x13as first and will fallback to the X13PATH
environmental variable. If False, will look for x12a first and will
fallback to the X12PATH environmental variable. If x12path points
to the path for the X12/X13 binary, it does nothing.
Returns:
res
: Bunch
A bunch object with the following attributes:
results : str
The full output from the X12/X13 run.
seasadj : pandas.Series
The final seasonally adjusted
endog
trend : pandas.Series
The trend-cycle component of
endog
irregular : pandas.Series
The final irregular component of
endog
stdout : str
The captured stdout produced by x12/x13.
spec : str, optional
Returned if
retspec
is True. The only thing returned if
speconly
is True.
Notes
This works by creating a specification file, writing it to a temporary
directory, invoking X12/X13 in a subprocess, and reading the output
directory, invoking exog12/X13 in a subprocess, and reading the output
back in.