<?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: STRATIFIED RANDOM SELCTION ISSUE in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/STRATIFIED-RANDOM-SELCTION-ISSUE/m-p/698524#M25528</link>
    <description>&lt;P&gt;I just did and all the input variable are there&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Blandine_0-1605213279885.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/51617i90A30801252368F6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Blandine_0-1605213279885.png" alt="Blandine_0-1605213279885.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Nov 2020 20:34:49 GMT</pubDate>
    <dc:creator>Blandine</dc:creator>
    <dc:date>2020-11-12T20:34:49Z</dc:date>
    <item>
      <title>STRATIFIED RANDOM SELCTION ISSUE</title>
      <link>https://communities.sas.com/t5/New-SAS-User/STRATIFIED-RANDOM-SELCTION-ISSUE/m-p/698514#M25523</link>
      <description>&lt;P&gt;I am doing a stratified random selection of 385 bridge based on 2 strata&amp;nbsp;STRUCTURE_KIND_043A OWNER_022 and my data have&amp;nbsp;STRUCTURE_NUMBER_008,STRUCTURE_KIND_043A, OWNER_022. the goal is to select a proportionate sample bridge based on the strata and I want to have the bridge number so I can make an analysis later on. however, with my code, I lost the bridge number somehow and I do not see the 385 bridge samples I was looking for. How do I retrieve it or is there a better way to do the stratified random selection with 2 different sample sizes of the strata?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;here is my code&lt;/P&gt;
&lt;P&gt;proc sort data=SUP.IDNBI_PSC_FILESTEST&lt;BR /&gt;out=SUP.IDNBI_PSCsort;&lt;BR /&gt;by STRUCTURE_KIND_043A OWNER_022;&amp;nbsp;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;proc surveyselect data=SUP.IDNBI_PSCsort n=385 &lt;BR /&gt;out=SUP.IDNBI_PSCsamp;&amp;nbsp;&lt;BR /&gt;strata STRUCTURE_KIND_043A OWNER_022/ alloc=prop nosample; &lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;here is the result&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Blandine_0-1605212446990.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/51613iFBE01528879C2B7B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Blandine_0-1605212446990.png" alt="Blandine_0-1605212446990.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2020 20:22:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/STRATIFIED-RANDOM-SELCTION-ISSUE/m-p/698514#M25523</guid>
      <dc:creator>Blandine</dc:creator>
      <dc:date>2020-11-12T20:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: STRATIFIED RANDOM SELCTION ISSUE</title>
      <link>https://communities.sas.com/t5/New-SAS-User/STRATIFIED-RANDOM-SELCTION-ISSUE/m-p/698519#M25526</link>
      <description>&lt;P&gt;Check to make sure the variable is in the input data set.&lt;/P&gt;
&lt;P&gt;If you do not include an ID statement to request specific variables then the procedure will have all variables from the input set in the output.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2020 20:30:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/STRATIFIED-RANDOM-SELCTION-ISSUE/m-p/698519#M25526</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-11-12T20:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: STRATIFIED RANDOM SELCTION ISSUE</title>
      <link>https://communities.sas.com/t5/New-SAS-User/STRATIFIED-RANDOM-SELCTION-ISSUE/m-p/698524#M25528</link>
      <description>&lt;P&gt;I just did and all the input variable are there&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Blandine_0-1605213279885.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/51617i90A30801252368F6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Blandine_0-1605213279885.png" alt="Blandine_0-1605213279885.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2020 20:34:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/STRATIFIED-RANDOM-SELCTION-ISSUE/m-p/698524#M25528</guid>
      <dc:creator>Blandine</dc:creator>
      <dc:date>2020-11-12T20:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: STRATIFIED RANDOM SELCTION ISSUE</title>
      <link>https://communities.sas.com/t5/New-SAS-User/STRATIFIED-RANDOM-SELCTION-ISSUE/m-p/698527#M25529</link>
      <description>&lt;P&gt;My output is still the same not sure why I am getting this issue.&lt;/P&gt;
&lt;P&gt;any idea?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2020 21:00:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/STRATIFIED-RANDOM-SELCTION-ISSUE/m-p/698527#M25529</guid>
      <dc:creator>Blandine</dc:creator>
      <dc:date>2020-11-12T21:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: STRATIFIED RANDOM SELCTION ISSUE</title>
      <link>https://communities.sas.com/t5/New-SAS-User/STRATIFIED-RANDOM-SELCTION-ISSUE/m-p/698534#M25530</link>
      <description>&lt;P&gt;Try adding an ID statement with the names of any variables that you do want in the output.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2020 21:19:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/STRATIFIED-RANDOM-SELCTION-ISSUE/m-p/698534#M25530</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-11-12T21:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: STRATIFIED RANDOM SELCTION ISSUE</title>
      <link>https://communities.sas.com/t5/New-SAS-User/STRATIFIED-RANDOM-SELCTION-ISSUE/m-p/698560#M25538</link>
      <description>&lt;P&gt;It looks like your code specifies the&amp;nbsp;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=statug&amp;amp;docsetTarget=statug_surveyselect_syntax07.htm&amp;amp;locale=en#statug.surveyselect.allocnosample" target="_self"&gt;NOSAMPLE&lt;/A&gt;&amp;nbsp;option in the STRATA statement. This option computes the allocation of the total sample size (among the strata) but doesn't select the sample. Your result is an&amp;nbsp;&lt;A style="font-family: inherit; background-color: #ffffff;" href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=statug&amp;amp;docsetTarget=statug_surveyselect_details27.htm&amp;amp;locale=en" target="_self"&gt;allocation output data set&lt;/A&gt;, which provides the sample sizes for the strata. (The levels of your 2 STRATA variables form 19 strata.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to select the sample, you can just remove the NOSAMPLE option from the STRATA statement.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2020 00:38:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/STRATIFIED-RANDOM-SELCTION-ISSUE/m-p/698560#M25538</guid>
      <dc:creator>Watts</dc:creator>
      <dc:date>2020-11-13T00:38:22Z</dc:date>
    </item>
  </channel>
</rss>

