<?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: Coding multi stage sample using proc surveymeans in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Coding-multi-stage-sample-using-proc-surveymeans/m-p/456467#M23822</link>
    <description>&lt;P&gt;This usage note should address your question I believe&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/23/997.html" target="_self"&gt;http://support.sas.com/kb/23/997.html&amp;nbsp;&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 23 Apr 2018 11:45:28 GMT</pubDate>
    <dc:creator>SAS_Rob</dc:creator>
    <dc:date>2018-04-23T11:45:28Z</dc:date>
    <item>
      <title>Coding multi stage sample using proc surveymeans</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Coding-multi-stage-sample-using-proc-surveymeans/m-p/456088#M23804</link>
      <description>&lt;P&gt;I am conducting an analysis from a survey that used the following sampling frame:&lt;/P&gt;&lt;P&gt;It is a 2 stage sample where the first phase was done with 3 strata and 1 cluster&amp;nbsp;with a&amp;nbsp;varying inclusion probability (which I think would be a sampling rate) and the second phase was done with 1 strata (different from the other 3) and a different inclusion probability. How would I code this to create correct standard errors when creating means? I am really trying to figure out how to account for the 2 different probabilities for each stage in the rate=sampling_rate&amp;nbsp; statement. How would I set up that dataset? Or if I am completely wrong, please lead in a better direction!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this so far:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;surveymeans&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=rhs_food rate=sampling_rate&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;title1&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="2"&gt;'Strata and Cluster specified'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;title2&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="2"&gt;'Complex Sample'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;strata&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; region_num sub_region_num comm_size_num age_gender_group;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;cluster&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; residence_merge;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;weight&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; weight_final;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;var&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; food_secure;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;Thank-you so much for any help!&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;Carole&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Apr 2018 20:52:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Coding-multi-stage-sample-using-proc-surveymeans/m-p/456088#M23804</guid>
      <dc:creator>carolet</dc:creator>
      <dc:date>2018-04-20T20:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: Coding multi stage sample using proc surveymeans</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Coding-multi-stage-sample-using-proc-surveymeans/m-p/456467#M23822</link>
      <description>&lt;P&gt;This usage note should address your question I believe&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/23/997.html" target="_self"&gt;http://support.sas.com/kb/23/997.html&amp;nbsp;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2018 11:45:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Coding-multi-stage-sample-using-proc-surveymeans/m-p/456467#M23822</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2018-04-23T11:45:28Z</dc:date>
    </item>
  </channel>
</rss>

