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
using export excel in combination with conditional statementDear all, Would you be able to advise me on the following? I have written several checks to flag d…
Tobit regression generating predicted values above the censored limit.Hi all ! I am running the tobit model on stata 14.1 with the following command: tobit effscr lnta_…
Subgroup analysis vs. interaction termsHello, I want to compare the effect of one variable (i.e. public debt) on a dependent variable (i.e…
How is this construct `=function(argument)', `=scalar_name', `=scalar_value' etc. called, and where can I read more about it?Nick Cox is putting to good use a construct which has same form like dereferencing of a local, excep…
CounterHi all, I have the following dataset: Code: * Example generated by -dataex-. To install: ssc ins…
Subscribe to:
Post Comments (Atom)
0 Response to ARIMA and SPSS
Post a Comment