<?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: selecting random value in variable in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/selecting-random-value-in-variable/m-p/523491#M4632</link>
    <description>&lt;P&gt;That is what I meant, thanks a lot! &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Dec 2018 18:32:05 GMT</pubDate>
    <dc:creator>karciamalino</dc:creator>
    <dc:date>2018-12-25T18:32:05Z</dc:date>
    <item>
      <title>selecting random value in variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/selecting-random-value-in-variable/m-p/523482#M4628</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have data with 156 variables and 10000 observations. Values of one variable are from 2 to 16 (only even) and I need to select 4 randomly selected values from this variable and keep them in data. I tried to use surveyselect procedure, but it doesn't work. I also thought about using ranuni, but don't know how to create even number:(&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 25 Dec 2018 17:39:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/selecting-random-value-in-variable/m-p/523482#M4628</guid>
      <dc:creator>karciamalino</dc:creator>
      <dc:date>2018-12-25T17:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: selecting random value in variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/selecting-random-value-in-variable/m-p/523484#M4629</link>
      <description>&lt;P&gt;Clarification is requested. When you say:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;I need to select 4 randomly selected values&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;do you really mean "select 4 randomly selected observations"?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Can you give us an example using, say, a data set with 20 observations, and the desired output?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Dec 2018 18:05:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/selecting-random-value-in-variable/m-p/523484#M4629</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-12-25T18:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: selecting random value in variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/selecting-random-value-in-variable/m-p/523486#M4630</link>
      <description>&lt;P&gt;Here is an example of selecting 4 age groups from sashelp.class with proc surveyselect:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=sashelp.class out=class; by age; run;

proc surveyselect data=class out=ageSample sampsize=4;
cluster age;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 25 Dec 2018 18:16:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/selecting-random-value-in-variable/m-p/523486#M4630</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2018-12-25T18:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: selecting random value in variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/selecting-random-value-in-variable/m-p/523490#M4631</link>
      <description>&lt;P&gt;Here is the example data. I want ot select these observations with for example a=2 or 4 or 6 or 8, the I don't know the value and I want to get the random one from available.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="example.JPG" style="width: 232px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/25884i5AA8D4AA0DFE982F/image-size/large?v=v2&amp;amp;px=999" role="button" title="example.JPG" alt="example.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and desired output in my example with a=2,4,6,8 would be observations 1,2,3,4,5,6,7,8,9,10,12,13,16.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Dec 2018 18:29:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/selecting-random-value-in-variable/m-p/523490#M4631</guid>
      <dc:creator>karciamalino</dc:creator>
      <dc:date>2018-12-25T18:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: selecting random value in variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/selecting-random-value-in-variable/m-p/523491#M4632</link>
      <description>&lt;P&gt;That is what I meant, thanks a lot! &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Dec 2018 18:32:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/selecting-random-value-in-variable/m-p/523491#M4632</guid>
      <dc:creator>karciamalino</dc:creator>
      <dc:date>2018-12-25T18:32:05Z</dc:date>
    </item>
  </channel>
</rss>

