<?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: Filling an empty array in a do loop in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Filling-an-empty-array-in-a-do-loop/m-p/356143#M83479</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Nice. This information should&amp;nbsp;automatically come to posters' attention.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4"&gt;@ChrisHemedinger&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Is there a way to make Kurt's recommendations appear whenever someone opens a new thread and is seeking programing help, like a check list that users confirm they have taken into account before they can click "Post"?&lt;/P&gt;</description>
    <pubDate>Thu, 04 May 2017 21:50:27 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2017-05-04T21:50:27Z</dc:date>
    <item>
      <title>Filling an empty array in a do loop</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Filling-an-empty-array-in-a-do-loop/m-p/355853#M83368</link>
      <description>&lt;P&gt;I have a data set that contains the variables "eligibility" and "predicted eligibility". These variables are assigned values 1 and 0. I wish to find the percentage of the times that the two variables match (i.e eligibility=0 and predicted eligibility=0 + eligibility=1 and predicted eligibility=1 all divided by the total)-this is to be called the match rate. The eligibility variable always remains the same, however the predicted eligibility variable depends on a probablity (called prob) that is used in assigning the predicted eligibility as being either 0 (if found_predict&amp;gt;=prob) or 1 (if found_predict&amp;lt;prob), where found_predict is a constant variable. I want to set up an array in a do loop that finds the matching rate for each probability. That is, i want code that looks at values for prob between 0.3 and 0.6 say (in increments of 0.01) and determines the match rate for each.&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2017 05:57:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Filling-an-empty-array-in-a-do-loop/m-p/355853#M83368</guid>
      <dc:creator>BenBrady</dc:creator>
      <dc:date>2017-05-04T05:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: Filling an empty array in a do loop</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Filling-an-empty-array-in-a-do-loop/m-p/355854#M83369</link>
      <description>&lt;P&gt;Example data please?&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2017 06:18:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Filling-an-empty-array-in-a-do-loop/m-p/355854#M83369</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2017-05-04T06:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: Filling an empty array in a do loop</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Filling-an-empty-array-in-a-do-loop/m-p/355859#M83370</link>
      <description>&lt;P&gt;When you posted your question, right below the message window you could see this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Stop right there!&lt;/STRONG&gt; Before pressing POST, tick off this checklist. Does your post …&lt;/P&gt;
&lt;TABLE align="left" border="1" cellpadding="5" cellspacing="5" width="75%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;✔ Have a descriptive subject line, i.e., How do I ‘XYZ’?&lt;/TD&gt;
&lt;TD&gt;✔ Use simple language and provide context? Definitely mention what version you’re on.&lt;/TD&gt;
&lt;TD&gt;✔ Include code and example data? Consider using the &lt;A href="https://communities.sas.com/t5/Community-Memo/Getting-the-Most-from-Your-Post-SAS-Syntax-Highlighter/ba-p/230172" target="_blank"&gt;SAS Syntax feature&lt;/A&gt;.&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please respect #3.&lt;/P&gt;
&lt;P&gt;A macro that converts a SAS dataset into datastep code for posting can be found &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2017 06:39:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Filling-an-empty-array-in-a-do-loop/m-p/355859#M83370</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-05-04T06:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: Filling an empty array in a do loop</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Filling-an-empty-array-in-a-do-loop/m-p/355956#M83411</link>
      <description>&lt;P&gt;It is a bit confusing to figure out what you are trying to do.&amp;nbsp; It is conceivable that arrays are a good tool for the job, or an irrelevant tool for the job.&amp;nbsp; At any rate, here are a couple of pieces of the puzzle.&amp;nbsp; To create your flag indicating whether actual eligibility matches predicted:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data want;&lt;/P&gt;
&lt;P&gt;set have;&lt;/P&gt;
&lt;P&gt;match = (eligibility = predicted_eligibility);&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To get its average value across observations (many ways to do this):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc summary data=want;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; var match;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; output out=stats (keep=match_rate) mean=match_rate;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2017 13:11:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Filling-an-empty-array-in-a-do-loop/m-p/355956#M83411</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-05-04T13:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: Filling an empty array in a do loop</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Filling-an-empty-array-in-a-do-loop/m-p/356143#M83479</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Nice. This information should&amp;nbsp;automatically come to posters' attention.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4"&gt;@ChrisHemedinger&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Is there a way to make Kurt's recommendations appear whenever someone opens a new thread and is seeking programing help, like a check list that users confirm they have taken into account before they can click "Post"?&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2017 21:50:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Filling-an-empty-array-in-a-do-loop/m-p/356143#M83479</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2017-05-04T21:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: Filling an empty array in a do loop</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Filling-an-empty-array-in-a-do-loop/m-p/356149#M83483</link>
      <description>We're looking at a way to make this more obvious for new users.  Stay tuned.</description>
      <pubDate>Thu, 04 May 2017 22:07:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Filling-an-empty-array-in-a-do-loop/m-p/356149#M83483</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2017-05-04T22:07:30Z</dc:date>
    </item>
  </channel>
</rss>

