<?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: Porting R code into SAS code in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Porting-R-code-into-SAS-code/m-p/656359#M31464</link>
    <description>&lt;P&gt;Here is a paper of mine about WOE .&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2018/1808-2018.pdf" target="_blank"&gt;https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2018/1808-2018.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And attachment is the code I used for score card.&lt;/P&gt;</description>
    <pubDate>Wed, 10 Jun 2020 11:22:44 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2020-06-10T11:22:44Z</dc:date>
    <item>
      <title>Porting R code into SAS code</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Porting-R-code-into-SAS-code/m-p/656139#M31461</link>
      <description>&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;I have to translate a 4k rows R code into SAS code. The code is not so difficult but uses a couple of packages that I ignore if are present in our current SAS licence. Our SAS licence includes the following main packages:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT size="2"&gt;Base SAS Software&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="2"&gt;SAS/STAT&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="2"&gt;SAS/GRAPH&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="2"&gt;SAS Integration Technologies&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="2"&gt;High Performance Suite&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;while the R code is using these main packages:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT size="2"&gt;MLmetrics&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT size="2"&gt;Machine Learning Evaluation Metrics&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT size="2"&gt;smbinning&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT size="2"&gt;Scoring Modeling and Optimal Binning&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT size="2"&gt;ineq&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT size="2"&gt;Measuring Inequality, Concentration, and Poverty&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT size="2"&gt;Information&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT size="2"&gt;Data Exploration with Information Theory (Weight-of-Evidence and Information Value)&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;May I ask you an help to identify any possible lacks between the SAS licence and the R packages currently used?&lt;/P&gt;&lt;P&gt;Thanks all!&lt;/P&gt;&lt;P&gt;Gabriele&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2020 08:01:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Porting-R-code-into-SAS-code/m-p/656139#M31461</guid>
      <dc:creator>KingRoger19</dc:creator>
      <dc:date>2020-06-10T08:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: Porting R code into SAS code</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Porting-R-code-into-SAS-code/m-p/656350#M31462</link>
      <description>&lt;P&gt;Just a quick comment: R packages are often used because they provide niche computations that are specialized to a subject area (such as "measuring inequality and poverty"). Those specialized computations are (by definition) unlikely to be found in a standard procedure.&amp;nbsp;SAS users often use either the DATA step (for univariate computations) or SAS/IML (for multivariate computations) to implement specialized computations. I suspect you might want to use SAS/IML for some of this project.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For what it's worth, if someone hired me to "to translate a 4k rows R code into SAS code," I would ask them to define the input data and the analyses that they want to be performed. I would almost surely not try to "translate" from one language to another one line at a time, but would rewrite the program in the new language to perform the requested analyses.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2020 10:56:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Porting-R-code-into-SAS-code/m-p/656350#M31462</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-06-10T10:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: Porting R code into SAS code</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Porting-R-code-into-SAS-code/m-p/656356#M31463</link>
      <description>Are you making a score card ?&lt;BR /&gt;SAS/EM have a individual and need-pay product (credit scorecard) , if you have it you can make it .</description>
      <pubDate>Wed, 10 Jun 2020 11:16:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Porting-R-code-into-SAS-code/m-p/656356#M31463</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-06-10T11:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: Porting R code into SAS code</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Porting-R-code-into-SAS-code/m-p/656359#M31464</link>
      <description>&lt;P&gt;Here is a paper of mine about WOE .&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2018/1808-2018.pdf" target="_blank"&gt;https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2018/1808-2018.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And attachment is the code I used for score card.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2020 11:22:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Porting-R-code-into-SAS-code/m-p/656359#M31464</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-06-10T11:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: Porting R code into SAS code</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Porting-R-code-into-SAS-code/m-p/656366#M31465</link>
      <description>&lt;P&gt;If you don't have SAS/EM , all you need is SAS/Base and SAS/Stat , but you need write hundreds of code .&lt;/P&gt;
&lt;P&gt;Here is SAS code about making a Credit ScoreCard.&lt;/P&gt;
&lt;P&gt;Good Luck.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2020 11:43:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Porting-R-code-into-SAS-code/m-p/656366#M31465</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-06-10T11:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: Porting R code into SAS code</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Porting-R-code-into-SAS-code/m-p/656397#M31468</link>
      <description>&lt;P&gt;Hi Rick,&lt;/P&gt;&lt;P&gt;I totally agree with you. We need to translate an IFRS9 model with its risk components (PD, EAD, LGD) and the only problem is that the customer is really hurry with this activity so they will provide us only the input datasets (csv) and the R scripts. We will understand on our own the R code and the desired output (both output csv and graphs) running the scripts. I'm going to ask to customer a documentation in order to understand a bit more which kind of computations they are performing.&lt;/P&gt;&lt;P&gt;Thanks a lot for your kindness, I will update you soon&lt;/P&gt;&lt;P&gt;Gabriele&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2020 13:02:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Porting-R-code-into-SAS-code/m-p/656397#M31468</guid>
      <dc:creator>KingRoger19</dc:creator>
      <dc:date>2020-06-10T13:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: Porting R code into SAS code</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Porting-R-code-into-SAS-code/m-p/656412#M31469</link>
      <description>&lt;P&gt;First of all thanks a lot for your help and kindness, i really appreciate it! We are working on a IFRS9 model.&lt;/P&gt;&lt;P&gt;As I wrote to Rick, I'm gathering further information to understand if we need the SAS/IML package that you are using too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Take care, cheers!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2020 13:49:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Porting-R-code-into-SAS-code/m-p/656412#M31469</guid>
      <dc:creator>KingRoger19</dc:creator>
      <dc:date>2020-06-10T13:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: Porting R code into SAS code</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Porting-R-code-into-SAS-code/m-p/657579#M31488</link>
      <description>&lt;P&gt;Hi Rick,&lt;/P&gt;&lt;P&gt;I gathered a couple of more detailed information from the client. They sent me a list of R functions currently used during the calculation. I mapped them in this way:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT face="arial black,avant garde" size="2"&gt;R packages&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT face="arial black,avant garde" size="2"&gt;SAS license/procedure&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT size="2"&gt;Glm() functions&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT size="2"&gt;proc GENMOD&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT size="2"&gt;Functionality for creating plots (ggplot2 package)&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT size="2"&gt;SAS GRAPH&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT size="2"&gt;Dplyr functions to rearrange data such as ‘mutate’, ‘filter’,’summarise’,’group_by’&amp;nbsp;&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT size="2"&gt;SAS BASE&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT size="2"&gt;Gini() from MLmetrics&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT size="2"&gt;SAS BASE&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT size="2"&gt;smbinning.psi(), smbinning() for obtaining optimal bucketing parameters&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT size="2"&gt;proc HPBIN&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT size="2"&gt;step() function on a glm() outcome&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT size="2"&gt;SAS BASE&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT size="2"&gt;create_infotables() from Information package&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT size="2"&gt;SAS BASE&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;I suggested to take in consideration the possible add of SAS/IML package in order to speed up our porting activities. We will have an alignment with SAS.&lt;/P&gt;&lt;P&gt;Thanks for your kindness, have a nice day.&lt;/P&gt;&lt;P&gt;Gabriele&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jun 2020 15:46:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Porting-R-code-into-SAS-code/m-p/657579#M31488</guid>
      <dc:creator>KingRoger19</dc:creator>
      <dc:date>2020-06-11T15:46:58Z</dc:date>
    </item>
  </channel>
</rss>

