<?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: Jumbling Observations in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Jumbling-Observations/m-p/440972#M110253</link>
    <description>&lt;P&gt;Check the RAND() function if you have SAS9.4M4 or Later&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA TEST;
input num;
random_num=RAND("NORMAL");
datalines;
1
2
3
4
5
;
run;

PROC SORT DATA=Test;
by random_num;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 28 Feb 2018 17:45:46 GMT</pubDate>
    <dc:creator>SuryaKiran</dc:creator>
    <dc:date>2018-02-28T17:45:46Z</dc:date>
    <item>
      <title>Jumbling Observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Jumbling-Observations/m-p/440955#M110245</link>
      <description>&lt;P&gt;I need to jumble my observations. Like if I have following:&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;4&lt;/P&gt;&lt;P&gt;5&lt;/P&gt;&lt;P&gt;6&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Then I need any jumbled list like:&lt;/P&gt;&lt;P&gt;5&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;6&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;4&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Any easy idea?&lt;/P&gt;&lt;P&gt;Any code to randomize the order in which observations are in data will be of great help.&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 17:12:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Jumbling-Observations/m-p/440955#M110245</guid>
      <dc:creator>thepushkarsingh</dc:creator>
      <dc:date>2018-02-28T17:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: Jumbling Observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Jumbling-Observations/m-p/440957#M110246</link>
      <description>&lt;P&gt;This smacks of an &lt;A href="http://mywiki.wooledge.org/XyProblem" target="_self"&gt;XY Problem&lt;/A&gt;.&amp;nbsp; Perhaps you could tell us what you are trying to do in a larger context?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the immediate:&amp;nbsp; You could generate a random number for each observation and then sort by the random number.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 17:20:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Jumbling-Observations/m-p/440957#M110246</guid>
      <dc:creator>HB</dc:creator>
      <dc:date>2018-02-28T17:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: Jumbling Observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Jumbling-Observations/m-p/440962#M110248</link>
      <description>&lt;OL&gt;
&lt;LI&gt;Make a new random variable.&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Sort your data by that variable.&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Wed, 28 Feb 2018 17:27:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Jumbling-Observations/m-p/440962#M110248</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2018-02-28T17:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: Jumbling Observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Jumbling-Observations/m-p/440967#M110250</link>
      <description>&lt;P&gt;PROC SURVEYSELECT, no replacement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://gist.github.com/statgeek/8a9e15cd823aaf7b54c2d5b1bc6faab1" target="_blank"&gt;https://gist.github.com/statgeek/8a9e15cd823aaf7b54c2d5b1bc6faab1&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 17:35:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Jumbling-Observations/m-p/440967#M110250</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-02-28T17:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: Jumbling Observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Jumbling-Observations/m-p/440972#M110253</link>
      <description>&lt;P&gt;Check the RAND() function if you have SAS9.4M4 or Later&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA TEST;
input num;
random_num=RAND("NORMAL");
datalines;
1
2
3
4
5
;
run;

PROC SORT DATA=Test;
by random_num;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 28 Feb 2018 17:45:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Jumbling-Observations/m-p/440972#M110253</guid>
      <dc:creator>SuryaKiran</dc:creator>
      <dc:date>2018-02-28T17:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: Jumbling Observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Jumbling-Observations/m-p/440973#M110254</link>
      <description>&lt;P&gt;You should just look at me, and do whatever I do.&amp;nbsp; My observations are always jumbled.&amp;nbsp; At least that's what my wife tells me.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 17:48:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Jumbling-Observations/m-p/440973#M110254</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-02-28T17:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: Jumbling Observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Jumbling-Observations/m-p/440974#M110255</link>
      <description>&lt;P&gt;But does she tell you you have an XY Problem?&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 17:50:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Jumbling-Observations/m-p/440974#M110255</guid>
      <dc:creator>HB</dc:creator>
      <dc:date>2018-02-28T17:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: Jumbling Observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Jumbling-Observations/m-p/441312#M110383</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/6401"&gt;@HB&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;But does she tell you you have an XY Problem?&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Probably just the pesky XY chromosome pairing. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 18:13:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Jumbling-Observations/m-p/441312#M110383</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-03-01T18:13:03Z</dc:date>
    </item>
  </channel>
</rss>

