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
Display "Robust" at the top of Std.Err. column using -ereturn display-Dear Statalist, I have a rather technical question regarding displaying estimation commands. I am w…
Summing observations with similar nameHi everyone, at the moment, I'm doing some data preparation on institutional ownership and the situ…
Maximum likelihood estimation with by(sort) commandDear, I hope you are all in good health. I'm estimating the amount of sorting across schools by est…
Storing values to a list and expand the list in each iterationI would like store certain values to a list and drop if certain variable's value is equivalent to th…
Help with dynamic panels (xtabond)Hi all! First time posting here. I am writing research on digitalization in EU28 and its economic …
Subscribe to:
Post Comments (Atom)
0 Response to ARIMA and SPSS
Post a Comment