<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Credit Migration Transition Matrices in SAS Forecasting and Econometrics</title>
    <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Credit-Migration-Transition-Matrices/m-p/751994#M4154</link>
    <description>Hello Ricky&lt;BR /&gt;Actually, I have tried to write a code using the SAS/IML statement, however, I’m not envisioning to spend a huge time trying to do that. What makes me disappointed is that the attention provided in R and Python forums is much better if compared to what I received here, given that these folks provided me some very useful examples from scratch, step-by-step, in order to achieve what I’m looking for, however, using R and Python and not SAS.&lt;BR /&gt;Rgs,</description>
    <pubDate>Sun, 04 Jul 2021 19:54:27 GMT</pubDate>
    <dc:creator>raphaelchaves</dc:creator>
    <dc:date>2021-07-04T19:54:27Z</dc:date>
    <item>
      <title>Credit Migration Transition Matrices</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Credit-Migration-Transition-Matrices/m-p/751813#M4150</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I have tried to develop something through SAS PROC IML in order to calculate a Credit Rating Transition Matrix for a specific sample, considering the cohort and hazard rate approaches, and also some confidence levels using bootstrap. This website (&lt;A href="https://analyticsrusers.blog/2017/08/15/use-r-to-easily-estimate-migration-matrices-with-rtransprob-part-1/" rel="nofollow ugc" target="_blank"&gt;https://analyticsrusers.blog/2017/08/15/use-r-to-easily-estimate-migration-matrices-with-rtransprob-part-1/&lt;/A&gt;) provides some specific examples regarding the "RTransprob" package which contains a set of functions used to automate commonly used methods to estimate migration matrices used in credit risk analysis. I'd like to do the same, however, through SAS instead of R. I have a SAS dataset containing the following attributes: CustomerId,Date,Rating,RatingNum.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm sending as an attached files:&lt;/P&gt;&lt;P&gt;a) Input_RatingTransitionMatrix(3).txt = Text file containing the data used for calculating the transition matrices&lt;/P&gt;&lt;P&gt;b) Output_RatingTransitionMatrix(1).xlsx = Excel file that illustrates the final results provided by the specific R package&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would be so grateful if you are able to send me a code developed in SAS in order to achieve the same/or similar results.&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;Rgs,&lt;BR /&gt;Raphael&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jul 2021 19:30:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Credit-Migration-Transition-Matrices/m-p/751813#M4150</guid>
      <dc:creator>raphaelchaves</dc:creator>
      <dc:date>2021-07-02T19:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: Credit Migration Transition Matrices</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Credit-Migration-Transition-Matrices/m-p/751928#M4151</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;nbsp;I would be so grateful if you are able to send me a code developed in SAS in order to achieve the same/or similar results.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suspect you will need to do some preliminary work on this problem before we will be able to offer help. Typically, the OP will post a program and ask questions about parts of the code that are confusing or not working. We can then offer advice, discuss strategies, and propose ways to modify your code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you know how to write a transition matrix? If not, start with&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2016/07/07/markov-transition-matrices-sasiml.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2016/07/07/markov-transition-matrices-sasiml.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;and&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2016/07/13/absorbing-markov-chains-in-sas.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2016/07/13/absorbing-markov-chains-in-sas.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;There are also papers about Markov transition matrices in SAS by searching the conference proceedings at&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;markov transition matrix iml site:lexjansen.com&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Jul 2021 20:16:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Credit-Migration-Transition-Matrices/m-p/751928#M4151</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2021-07-03T20:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: Credit Migration Transition Matrices</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Credit-Migration-Transition-Matrices/m-p/751979#M4152</link>
      <description>Thanks Rick,&lt;BR /&gt;I was assuming that SAS has already had developed something like that in a specific Proc statement, given that other languages like R, Python, Matlab and etc have already implemented it easily. Said that, I think I’m gonna use what other languages have to offer, instead of trying to develop something from scratch in SAS.&lt;BR /&gt;Rgs,&lt;BR /&gt;Raphael</description>
      <pubDate>Sun, 04 Jul 2021 12:46:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Credit-Migration-Transition-Matrices/m-p/751979#M4152</guid>
      <dc:creator>raphaelchaves</dc:creator>
      <dc:date>2021-07-04T12:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: Credit Migration Transition Matrices</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Credit-Migration-Transition-Matrices/m-p/751991#M4153</link>
      <description>&lt;P&gt;This forum is for writing SAS/IML programs, so that is why I assumed you wanted to write an IML program. SAS has a&amp;nbsp; lot of functionality for econometric, forecasting, and credit risk. I don't know all the offerings., but others who have backgrounds in forecasting might be able to point you to other SAS products.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will move this thread to the Forecasting and Econometrics community. Hopefully someone there will know how to perform this functionality in SAS.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jul 2021 10:39:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Credit-Migration-Transition-Matrices/m-p/751991#M4153</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2021-07-05T10:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: Credit Migration Transition Matrices</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Credit-Migration-Transition-Matrices/m-p/751994#M4154</link>
      <description>Hello Ricky&lt;BR /&gt;Actually, I have tried to write a code using the SAS/IML statement, however, I’m not envisioning to spend a huge time trying to do that. What makes me disappointed is that the attention provided in R and Python forums is much better if compared to what I received here, given that these folks provided me some very useful examples from scratch, step-by-step, in order to achieve what I’m looking for, however, using R and Python and not SAS.&lt;BR /&gt;Rgs,</description>
      <pubDate>Sun, 04 Jul 2021 19:54:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Credit-Migration-Transition-Matrices/m-p/751994#M4154</guid>
      <dc:creator>raphaelchaves</dc:creator>
      <dc:date>2021-07-04T19:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: Credit Migration Transition Matrices</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Credit-Migration-Transition-Matrices/m-p/753343#M4168</link>
      <description>&lt;P&gt;Hello &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/197190"&gt;@raphaelchaves&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In general you get very good (high quality) code examples in this communities site (and&amp;nbsp;certainly from Rick),&amp;nbsp;but you have to give a bit of a lead. Especially when there are so much methods and approaches to achieve "the same".&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;It is also quite a complex thing (although that is relative of course). Correcting code is then easier than coughing it up from scratch (I do not know if the latter sentence is proper English &lt;span class="lia-unicode-emoji" title=":face_with_rolling_eyes:"&gt;🙄&lt;/span&gt;).&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I'm not in finance consulting anymore (I was a lot before 2010 for Basel II) but I'm as good as sure the SAS solutions for Risk Management and Risk and Finance Analytics have built-in credit migration transition matrices. Maybe you can contact your local SAS office to find out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also have a look at the SSM procedure (for&amp;nbsp;&lt;SPAN style="font-family: inherit;"&gt;State Space Models ) in SAS/ETS. I think it should be able to do what you're looking for.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;Kind regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;Koen&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jul 2021 14:49:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Credit-Migration-Transition-Matrices/m-p/753343#M4168</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2021-07-10T14:49:28Z</dc:date>
    </item>
  </channel>
</rss>

