<?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: Simple regression using complex survey data in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Simple-regression-using-complex-survey-data/m-p/870778#M43097</link>
    <description>&lt;P&gt;The differences you are seeing regarding the NOTEs in the SURVEYXXX procedures has to do with how each of the procedures handles single observation strata.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there is only one sampling unit in a stratum, then there is no way to estimate a variance in such a case directly.&amp;nbsp; You can either remove the offending strata from the variance calculation (like SURVEYMEANS and SURVEYFREQ do) or you can collapse those strata into one other strata so that there are no single observation strata (like SURVEYREG does).&lt;/P&gt;</description>
    <pubDate>Thu, 20 Apr 2023 13:47:32 GMT</pubDate>
    <dc:creator>SAS_Rob</dc:creator>
    <dc:date>2023-04-20T13:47:32Z</dc:date>
    <item>
      <title>Simple regression using complex survey data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Simple-regression-using-complex-survey-data/m-p/870772#M43094</link>
      <description>&lt;P&gt;I want to preform a simple regression/ ANOVA. I am using complex data therefore&amp;nbsp; weight, cluster and strata variables are required. I am also using a subpopulation and need a domain statement&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code I have attempted is&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc surveyreg data = mydata
strata sdmvstra;
cluster sdmvpsu;
weight Weightdiet12YR; 
domain mysubpopulation;
class categorical;
model continuous= categorical;
run;&lt;/PRE&gt;&lt;P&gt;The error I am receiving is:&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: In data set mydata, total 59842 observations read, 59724 observations with missing values or&lt;BR /&gt;non-positive weights are omitted.&lt;BR /&gt;NOTE: Strata with only one cluster are collapsed. Use the NOCOLLAPSE option in the STRATA statement&lt;BR /&gt;if you do not want to collapse these strata.&lt;BR /&gt;NOTE: Strata with only one cluster are collapsed. Use the NOCOLLAPSE option in the STRATA statement&lt;BR /&gt;if you do not want to collapse these strata.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been able to use proc surveymeans and proc surveyfreq without an error of missing values or non positive weights.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would any be able to help me with this code? Is there another way I should preform this test?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2023 13:33:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Simple-regression-using-complex-survey-data/m-p/870772#M43094</guid>
      <dc:creator>byrne48</dc:creator>
      <dc:date>2023-04-20T13:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: Simple regression using complex survey data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Simple-regression-using-complex-survey-data/m-p/870775#M43096</link>
      <description>&lt;P&gt;These are not ERRORs, these are NOTES. These indicate that there may be issues found in your data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your data has lots of missing values (or non-positive weights), then you need to simplify the model or fix the missing/non-positive weights.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2023 13:41:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Simple-regression-using-complex-survey-data/m-p/870775#M43096</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-04-20T13:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: Simple regression using complex survey data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Simple-regression-using-complex-survey-data/m-p/870778#M43097</link>
      <description>&lt;P&gt;The differences you are seeing regarding the NOTEs in the SURVEYXXX procedures has to do with how each of the procedures handles single observation strata.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there is only one sampling unit in a stratum, then there is no way to estimate a variance in such a case directly.&amp;nbsp; You can either remove the offending strata from the variance calculation (like SURVEYMEANS and SURVEYFREQ do) or you can collapse those strata into one other strata so that there are no single observation strata (like SURVEYREG does).&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2023 13:47:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Simple-regression-using-complex-survey-data/m-p/870778#M43097</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2023-04-20T13:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: Simple regression using complex survey data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Simple-regression-using-complex-survey-data/m-p/870780#M43098</link>
      <description>Thanks for the response!&lt;BR /&gt;The variable mentioned in my domain is a subpopulation (of approx 27,000 participants), there are no non positive weights for this variable.&lt;BR /&gt;There are however missing values, how would I correct this?&lt;BR /&gt;Thanks for your help!</description>
      <pubDate>Thu, 20 Apr 2023 13:50:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Simple-regression-using-complex-survey-data/m-p/870780#M43098</guid>
      <dc:creator>byrne48</dc:creator>
      <dc:date>2023-04-20T13:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: Simple regression using complex survey data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Simple-regression-using-complex-survey-data/m-p/870783#M43100</link>
      <description>&lt;P&gt;You either have to impute values to replace the missings (probably not advisable when it seems like 99% of the data is missing) or remove the variable from the model.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2023 13:52:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Simple-regression-using-complex-survey-data/m-p/870783#M43100</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-04-20T13:52:35Z</dc:date>
    </item>
  </channel>
</rss>

