<?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: Transfer data and loops in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Transfer-data-and-loops/m-p/349719#M81183</link>
    <description>&lt;P&gt;1. One easy way would be a csv-file (write.csv, ..&amp;nbsp;in R &amp;amp; proc import in SAS). (And you could simulate your data in SAS as well (?))&lt;/P&gt;
&lt;P&gt;2. Depending on your models and data there are different ways too.&amp;nbsp;Check out the&amp;nbsp;"BY" Statement of proc logistic.&lt;/P&gt;</description>
    <pubDate>Thu, 13 Apr 2017 11:30:20 GMT</pubDate>
    <dc:creator>user24feb</dc:creator>
    <dc:date>2017-04-13T11:30:20Z</dc:date>
    <item>
      <title>Transfer data and loops</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transfer-data-and-loops/m-p/349699#M81170</link>
      <description>&lt;PRE class="tw-data-text tw-ta tw-text-small"&gt;&lt;SPAN&gt;Hello,

I want to analyze simulated data of different sizes in both R and SAS. &lt;BR /&gt;I have simulated all the samples in R and where I've done all my analysis, now I want to analyze &lt;BR /&gt;all of those samples in SAS. All samples are in a the data frame.&lt;BR /&gt;I want to do logistic regression and exact logistic regression, &lt;BR /&gt;and I'm interested in the estimated coefficients. (university edition)

1. How do I transfer all samples to SAS smoothly? (So that point 2 gets easy)

2. How do I make a loop so that I can analyze all the data directly? &lt;BR /&gt;Note that the sample size goes from 5-1500 with an increment of 5 and for now I &lt;BR /&gt;only have one explanatory variable.&lt;BR /&gt;&lt;BR /&gt;Plz help :)&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 13 Apr 2017 09:43:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transfer-data-and-loops/m-p/349699#M81170</guid>
      <dc:creator>gretaolsson</dc:creator>
      <dc:date>2017-04-13T09:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer data and loops</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transfer-data-and-loops/m-p/349719#M81183</link>
      <description>&lt;P&gt;1. One easy way would be a csv-file (write.csv, ..&amp;nbsp;in R &amp;amp; proc import in SAS). (And you could simulate your data in SAS as well (?))&lt;/P&gt;
&lt;P&gt;2. Depending on your models and data there are different ways too.&amp;nbsp;Check out the&amp;nbsp;"BY" Statement of proc logistic.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2017 11:30:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transfer-data-and-loops/m-p/349719#M81183</guid>
      <dc:creator>user24feb</dc:creator>
      <dc:date>2017-04-13T11:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer data and loops</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transfer-data-and-loops/m-p/349721#M81184</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are R packages to create datasets directly for example:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://cran.r-project.org/web/packages/sas7bdat/sas7bdat.pdf" target="_blank"&gt;https://cran.r-project.org/web/packages/sas7bdat/sas7bdat.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then you simply copy that file to your working area and write code based on that dataset.&lt;/P&gt;
&lt;P&gt;AS for your stats question, I don't know the code offhand, but "looping" is done using by group processing.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2017 11:48:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transfer-data-and-loops/m-p/349721#M81184</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-04-13T11:48:12Z</dc:date>
    </item>
  </channel>
</rss>

