<?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: Proc surveyreg giving different results when switching the order of strata variables in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-surveyreg-giving-different-results-when-switching-the-order/m-p/434275#M22889</link>
    <description>&lt;P&gt;From the documentation:&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#008000"&gt;The STRATA statement names one or more &lt;SPAN class=" AAargument"&gt;variables&lt;/SPAN&gt; that identify the first-stage strata in a stratified sample design. The combinations of levels of STRATA variables define the strata in the sample, where strata are nonoverlapping subgroups that were sampled independently. &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So the order reflects the sampling strategy. If you change the strata order then you are saying that the sample strategy changed and the results will be (sometimes quite) significantly different. A strata A B C says that we identified records by some characteristic and sampled them, then with in A we sampled by characteristic B, then within B we sampled on C.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your strata are fixed at sampling. Models should reflect that sample.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And you might show the entire Proc Surveyfreq as CLUSTER statement also affects calculations.&lt;/P&gt;</description>
    <pubDate>Mon, 05 Feb 2018 17:40:26 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2018-02-05T17:40:26Z</dc:date>
    <item>
      <title>Proc surveyreg giving different results when switching the order of strata variables</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-surveyreg-giving-different-results-when-switching-the-order/m-p/433739#M22819</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was wondering if it was normal to get different results when you change the order of the strata variables. For example, let's say we run two models:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc surveyreg data=mydata; strata&lt;STRONG&gt; A B C&lt;/STRONG&gt;; model yvar=xvar;run;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;proc surveyreg data=mydata; strata &lt;STRONG&gt;B A C&lt;/STRONG&gt;; model yvar=xvar;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is it possible for the two models to get different results? The reason I'm asking is because for the model I ran, by simply switching the order of the strata variables, my standard errors and p-values changed. This was not universal however. Results only changed when using a specific xvar.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Feb 2018 01:24:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-surveyreg-giving-different-results-when-switching-the-order/m-p/433739#M22819</guid>
      <dc:creator>pkfamily</dc:creator>
      <dc:date>2018-02-03T01:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: Proc surveyreg giving different results when switching the order of strata variables</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-surveyreg-giving-different-results-when-switching-the-order/m-p/434275#M22889</link>
      <description>&lt;P&gt;From the documentation:&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#008000"&gt;The STRATA statement names one or more &lt;SPAN class=" AAargument"&gt;variables&lt;/SPAN&gt; that identify the first-stage strata in a stratified sample design. The combinations of levels of STRATA variables define the strata in the sample, where strata are nonoverlapping subgroups that were sampled independently. &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So the order reflects the sampling strategy. If you change the strata order then you are saying that the sample strategy changed and the results will be (sometimes quite) significantly different. A strata A B C says that we identified records by some characteristic and sampled them, then with in A we sampled by characteristic B, then within B we sampled on C.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your strata are fixed at sampling. Models should reflect that sample.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And you might show the entire Proc Surveyfreq as CLUSTER statement also affects calculations.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2018 17:40:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-surveyreg-giving-different-results-when-switching-the-order/m-p/434275#M22889</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-02-05T17:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: Proc surveyreg giving different results when switching the order of strata variables</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-surveyreg-giving-different-results-when-switching-the-order/m-p/434343#M22893</link>
      <description>&lt;P&gt;In addition to ballardw's&amp;nbsp;comments, I will point out that you need to use&lt;/P&gt;
&lt;P&gt;PROC SURVEYSELECT SEED=12345 ...&lt;/P&gt;
&lt;P&gt;if you want two runs of the procedure to produce the same results. Since you are using the STRATA statement, you will also need to control the stratum random seeds. &lt;A href="http://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_surveyselect_syntax01.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en#statug.surveyselect.selectseed" target="_self"&gt;See the SEED= option in the doc.&amp;nbsp;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2018 19:05:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-surveyreg-giving-different-results-when-switching-the-order/m-p/434343#M22893</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-02-05T19:05:05Z</dc:date>
    </item>
  </channel>
</rss>

