Hi, could you please verify if this is the correct way to implement a sarimax model with ssm, especially for the exogenous part?
proc ssm data=casuser.series optimizer(technique=ACTIVESET maxiter=10) like=DIFFUSE;
id d interval=day;
trend sarima(arima(d=1 sd=1 p=1 q=1 sq=1 s=52)) ;
*trend arimaTrend(arma(d=1 sd=1 p=1 q=1 sq=1 s=52)) ar=0.8550 ma=-0.9781 -0.9990 ;
model v = sarima x;
output outfor=casuser.For;
run;
proc ssm data=casuser.series optimizer(technique=ACTIVESET maxiter=10) like=DIFFUSE;
id d interval=week;
trend sarima(arima(d=1 sd=1 p=1 q=1 sq=1 s=52)) ;
model v = sarima x;
output outfor=casuser.For;
run;
The Series dataset has 3 columns (d=date, v=endogenous variable, x=exogenous variable).
I define an arima trend with that parameters.
I model the v as: that trend AND the x, simply put in there.
Is this the correct formulation for the sarimaX model?
Thank you