<?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: PSI stability index in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PSI-stability-index/m-p/802152#M315771</link>
    <description>&lt;P&gt;May you also show here ? Please direct the code to the example I sent,cheers&lt;/P&gt;</description>
    <pubDate>Tue, 15 Mar 2022 11:28:57 GMT</pubDate>
    <dc:creator>Ronein</dc:creator>
    <dc:date>2022-03-15T11:28:57Z</dc:date>
    <item>
      <title>PSI stability index</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PSI-stability-index/m-p/802144#M315764</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;I would like to calculate PSI stability index for the following&amp;nbsp; data.&lt;/P&gt;
&lt;P&gt;May anyone show the code in SAS to calculate it.&lt;/P&gt;
&lt;P&gt;PCT_DEV&amp;nbsp; is percentile of customers in category from all customers&amp;nbsp; (Development time)&lt;/P&gt;
&lt;P&gt;PCT_last&amp;nbsp; is percentile of customers in category from all customers (last time)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data have;
input category  PCT_Dev  PCT_last;
cards;
1 0.9864649963 0.9923499412
2 0.0135350037 0.0076500588
;
Run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 Mar 2022 10:39:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PSI-stability-index/m-p/802144#M315764</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2022-03-15T10:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: PSI stability index</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PSI-stability-index/m-p/802150#M315770</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does&amp;nbsp;&lt;A href="http://support.sas.com/resources/papers/proceedings10/288-2010.pdf" target="_blank" rel="noopener"&gt;this paper&lt;/A&gt;&amp;nbsp;help?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind regards,&lt;/P&gt;
&lt;P&gt;Amir.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2022 11:16:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PSI-stability-index/m-p/802150#M315770</guid>
      <dc:creator>Amir</dc:creator>
      <dc:date>2022-03-15T11:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: PSI stability index</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PSI-stability-index/m-p/802152#M315771</link>
      <description>&lt;P&gt;May you also show here ? Please direct the code to the example I sent,cheers&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2022 11:28:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PSI-stability-index/m-p/802152#M315771</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2022-03-15T11:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: PSI stability index</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PSI-stability-index/m-p/802158#M315774</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I had never heard of Population Stability Index until your post, so I don't think I'd be best placed to assist.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I just Googled "PSI site:sas.com" and the first hit is the paper I sent in my post.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the paper is not helpful then I would suggest you try performing other searches to get results from any site. Or even try posting to statistical forums here and elsewhere, or whatever PSI would be considered a sub-topic of.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have tried going through the paper and attempted a solution, but are getting errors then try posting the errors here to see if anyone else can help. Alternatively, are you able to ask a colleague of yours?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lastly, I'm not sure if your confusion is over the general method of how to calculate PSI (which one can Google).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HTH.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind regards,&lt;/P&gt;
&lt;P&gt;Amir.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2022 12:23:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PSI-stability-index/m-p/802158#M315774</guid>
      <dc:creator>Amir</dc:creator>
      <dc:date>2022-03-15T12:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: PSI stability index</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PSI-stability-index/m-p/802179#M315789</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
/*********** Group=10 ****************/
data have;
input n min max n_good_real n_good_pred  ;
cards;
0 406 468 24 20
1 470 484 45 42 
2 485 495 43 48
3 496 508 64 66
4 509 520 80 78
5 521 531 80 84
6 532 544 85 84
7 545 556 89 87
8 557 571 97 95 
9 572 624 93 96
;
run;

title 'Group=10';
proc sql;
create table temp as
select n label='组号',min label='最小得分' ,max label='最大得分',
n_good_real label='实际好客户个数',
n_good_pred label='预测好客户个数',
 n_good_real/(select sum(n_good_real) from have) as A label='实际好客户占比 A' format=percent7.2,
 n_good_pred/(select sum(n_good_pred) from have) as E label='预测好客户占比 E' format=percent7.2,
 calculated A - calculated E as A_E label='A-E',
 log(calculated A/calculated E) as logAE label='LOG(A/E)' ,&lt;BR /&gt;&lt;SPAN&gt; calculated A_E *calculated logAE as PSI&lt;/SPAN&gt;
   from have ;

select * from temp;
select sum(PSI) as PSI from temp;

select n_good_pred into : list separated by ' ' from have;
quit;

%put &amp;amp;list ;

title2 'Chi-Square Goodness-of-Fit Tests';
proc freq data=have order=data;
tables n / nocum chisq testf=( &amp;amp;list ) plots(only)=deviationplot(type=dotplot);
weight n_good_real;
run;




&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 12:35:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PSI-stability-index/m-p/802179#M315789</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-03-16T12:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: PSI stability index</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PSI-stability-index/m-p/802419#M315884</link>
      <description>Thanks and great.&lt;BR /&gt;I think that you forgot to calculate the Multiplication of  (A-E)*(Log (A/E) ) and then sum this values to get PSI.&lt;BR /&gt;&lt;BR /&gt;calculated A - calculated E as A_E label='A-E',&lt;BR /&gt; log(calculated A/calculated E) as logAE label='LOG(A/E)',&lt;BR /&gt;calculated A_E *calculated logAE  as PSI</description>
      <pubDate>Wed, 16 Mar 2022 05:58:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PSI-stability-index/m-p/802419#M315884</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2022-03-16T05:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: PSI stability index</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PSI-stability-index/m-p/802478#M315921</link>
      <description>OK. I changed my code. Hope someone need it .</description>
      <pubDate>Wed, 16 Mar 2022 12:36:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PSI-stability-index/m-p/802478#M315921</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-03-16T12:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: PSI stability index</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PSI-stability-index/m-p/923373#M363535</link>
      <description>&lt;P&gt;On this page there is a complete example with all the steps:&lt;BR /&gt;&lt;A href="https://www.sasdesdecero.com/implementacion-en-sas-del-population-stability-index/" target="_self"&gt;https://www.sasdesdecero.com/implementacion-en-sas-del-population-stability-index/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2024 08:30:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PSI-stability-index/m-p/923373#M363535</guid>
      <dc:creator>jorgelobin</dc:creator>
      <dc:date>2024-04-08T08:30:09Z</dc:date>
    </item>
  </channel>
</rss>

