<?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: Converting R object in wps in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Converting-R-object-in-wps/m-p/787468#M251624</link>
    <description>&lt;P&gt;Sure, WPS can handle SAS languages, but I think you should contact wps support or post in the WPS User Forum?&lt;/P&gt;</description>
    <pubDate>Mon, 27 Dec 2021 16:10:16 GMT</pubDate>
    <dc:creator>japelin</dc:creator>
    <dc:date>2021-12-27T16:10:16Z</dc:date>
    <item>
      <title>Converting R object in wps</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Converting-R-object-in-wps/m-p/787465#M251623</link>
      <description>&lt;P&gt;I usually code in R and python and have recently been using wps. I am trying to save a logistic regression model and use it in another r proc to no avail. Can anyone help me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc r;&lt;BR /&gt;submit;&lt;BR /&gt;weight &amp;lt;- runif(100,5,65)&lt;BR /&gt;x_1 &amp;lt;- runif(100,0,1)&lt;BR /&gt;x_2 &amp;lt;- runif(100,2,10)&lt;BR /&gt;sex &amp;lt;- factor(rep(c("H","F"),each=3,length.out=100))&lt;BR /&gt;chd &amp;lt;- factor(rep(c("Oui","Non"),each=2,length.out=100))&lt;BR /&gt;data &amp;lt;- data.frame(chd,weight,x_1,x_2,sex)&lt;BR /&gt;endsubmit;&lt;BR /&gt;import R=data;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc r;&lt;BR /&gt;export data=DATA;&lt;BR /&gt;submit;&lt;BR /&gt;DATA$chd&amp;lt;-factor(DATA$chd)&lt;BR /&gt;DATA$sex &amp;lt;- factor(DATA$sex)&lt;BR /&gt;mdl &amp;lt;- glm(chd~.,data=DATA, family=binomial(logit))&lt;BR /&gt;endsubmit;&lt;BR /&gt;save catalog=WORK.mdl.entry R='mdl'n;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc r;&lt;BR /&gt;load cat=WORK.mdl.entry R='MDL'n ;&lt;BR /&gt;import R='MDL'n ;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Dec 2021 16:02:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Converting-R-object-in-wps/m-p/787465#M251623</guid>
      <dc:creator>Ariane_Helena</dc:creator>
      <dc:date>2021-12-27T16:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: Converting R object in wps</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Converting-R-object-in-wps/m-p/787468#M251624</link>
      <description>&lt;P&gt;Sure, WPS can handle SAS languages, but I think you should contact wps support or post in the WPS User Forum?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Dec 2021 16:10:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Converting-R-object-in-wps/m-p/787468#M251624</guid>
      <dc:creator>japelin</dc:creator>
      <dc:date>2021-12-27T16:10:16Z</dc:date>
    </item>
  </channel>
</rss>

