BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
anais
Calcite | Level 5

Hey,

I would like to estimate a threshold autoregressive model with SAS software, but I do not know if it is possible to estimate it?

Is it possible to estimate it with the procedure MODEL?

Can someone help me to find some codes to estimate this model?

I know that the estimation of this  particular class of models is possible with the software R (using the procedure SETAR).

Thanks,

Anaïs

1 ACCEPTED SOLUTION

Accepted Solutions
ets_kps
SAS Employee

Hello Anais,

It seems PROC MODEL can be used to estimate a Threshold Autoregressive model in SAS.  In fact, in our examples we show how to estimate a switching model in PROC MODEL.  This can be found here. http://support.sas.com/documentation/cdl/en/etsug/63939/HTML/default/viewer.htm#etsug_model_sect096....

From the developer of the PROC, "...estimation of the switching parameter is problematic. That’s why we approximate
the discrete switch with  a smoother (first order continuous) transition between models in the example.  For TAR models where more than TWO regimes are considered, this could be onerous to implement in MODEL."

I hope this helps-Ken

View solution in original post

3 REPLIES 3
ets_kps
SAS Employee

Hello Anais,

It seems PROC MODEL can be used to estimate a Threshold Autoregressive model in SAS.  In fact, in our examples we show how to estimate a switching model in PROC MODEL.  This can be found here. http://support.sas.com/documentation/cdl/en/etsug/63939/HTML/default/viewer.htm#etsug_model_sect096....

From the developer of the PROC, "...estimation of the switching parameter is problematic. That’s why we approximate
the discrete switch with  a smoother (first order continuous) transition between models in the example.  For TAR models where more than TWO regimes are considered, this could be onerous to implement in MODEL."

I hope this helps-Ken

anais
Calcite | Level 5

Thanks,

I read the example that you gave me.

I modified it a little bit in order to adapt it to my model. I changed the "threshold variable", instead of choosing an exogeneous variable, I chose to put a lag of my endogeneous variable, in order to replicate a SETAR Model.

I tried to estimate it but, it seems that there is a problem of convergence in the estimaors. I don't know how to solve it?

Do I have to change the level of convergence, in order to have "algorithm converged"?

Thanks,

Anaïs

anais
Calcite | Level 5

I also tried to use an exogeneous variable (as the "threshold variable"), but it seems that there is a problem of singularity and SAS did not want to estimate my model.

I don't understand, I wrote exactly the same codes as in the example...

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

Multiple Linear Regression in SAS

Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 2059 views
  • 0 likes
  • 2 in conversation