We are discontinuing use of SPSS (a product I have never used) in our office and one of my colleagues provided me with this code and asked me to translate it into STATA. The data is a monthly time series variable name "electric" .
Here's the SPSS Code:
GET
FILE='I:\HOME\JCJ\DIGEST\Indelec.sav'.
* ARIMA.
TSET PRINT=DEFAULT CIN=95 NEWVAR=ALL .
PREDICT THRU YEAR 2018 MONTH 12 .
ARIMA electric
/MODEL=( 0 1 1 )( 0 1 1 ) LN CONSTANT
/MXITER 10
/PAREPS .001
/SSQPCT .001
/FORECAST EXACT .
so far I successfully import the data into STATA and turn it into a time series.
because of the use of the LN option I create a log of the variable and because of the CONSTANT option I do nothing because constant is the default in STATA.
Here's my .do file so far:
gen ln_electric = ln(electric)
arima ln_electric, arima(0,1,1) sarima(0, 1 , 1 , 12)
I'm not sure what the other sub options (MXITER PAREPS SSQPCT) do. I'm not sure how to the PREDICT functions work in SPSS. My colleague tells me the SPSS code returns a prediction of the original level. I have been unable to replicate these results in STATA.
Any help would be appreciated.
Related Posts with ARIMA and SPSS
How to run the regression if the frquency of a variable is higher than a specific number?Let say I have a dataset Code: SIC3 Freq. Percent Cum. …
Help in creating grouped bar chartHi, I am using Stata version 17 and trying to create a grouped bar chart like this: Array I use t…
three-digit SIC codesHallo, I have a variable name SIC (Standard Industry Classification Code), type (str4), SIC codes fr…
graphicHallo, I am trying to understand and figure out how to actually code/test between one item (Investme…
What does "could not run iputation" meanWhen using did_imputation (a Difference-in-Difference approach), I faced this problem Could not…
Subscribe to:
Post Comments (Atom)
0 Response to ARIMA and SPSS
Post a Comment