<?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 T-Test Complex Survey Data in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/T-Test-Complex-Survey-Data/m-p/645205#M30954</link>
    <description>&lt;P&gt;I am trying to use proc surveyreg to run a t-test for my complex survey data, but I keep getting an error stating " Variable Depression_Indicator in list does not match type prescribed for this list/ No Model Statement"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the code I am using&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC SURVEYREG data=final nomcar;&lt;BR /&gt;STRATA sdmvstra;&lt;BR /&gt;CLUSTER sdmvpsu;&lt;BR /&gt;CLASS riagendr;&lt;BR /&gt;WEIGHT MEC4YR;&lt;BR /&gt;MODEL DEPRESSION_INDICATOR = riagendr/solution vadjust=none;&lt;BR /&gt;run;&lt;/P&gt;</description>
    <pubDate>Tue, 05 May 2020 09:17:50 GMT</pubDate>
    <dc:creator>ED18</dc:creator>
    <dc:date>2020-05-05T09:17:50Z</dc:date>
    <item>
      <title>T-Test Complex Survey Data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/T-Test-Complex-Survey-Data/m-p/645205#M30954</link>
      <description>&lt;P&gt;I am trying to use proc surveyreg to run a t-test for my complex survey data, but I keep getting an error stating " Variable Depression_Indicator in list does not match type prescribed for this list/ No Model Statement"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the code I am using&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC SURVEYREG data=final nomcar;&lt;BR /&gt;STRATA sdmvstra;&lt;BR /&gt;CLUSTER sdmvpsu;&lt;BR /&gt;CLASS riagendr;&lt;BR /&gt;WEIGHT MEC4YR;&lt;BR /&gt;MODEL DEPRESSION_INDICATOR = riagendr/solution vadjust=none;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 09:17:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/T-Test-Complex-Survey-Data/m-p/645205#M30954</guid>
      <dc:creator>ED18</dc:creator>
      <dc:date>2020-05-05T09:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: T-Test Complex Survey Data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/T-Test-Complex-Survey-Data/m-p/645238#M30961</link>
      <description>&lt;P&gt;Is&amp;nbsp;&lt;SPAN&gt;DEPRESSION_INDICATOR&amp;nbsp;a character variable? What does PROC CONTENTS say?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;To do a t-test, your Y variable must be numeric.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 10:56:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/T-Test-Complex-Survey-Data/m-p/645238#M30961</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-05-05T10:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: T-Test Complex Survey Data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/T-Test-Complex-Survey-Data/m-p/645269#M30963</link>
      <description>&lt;P&gt;Given the name of your variable I am assuming that it is a categorical variable.&amp;nbsp; To compare groups for a categorical response with complex survey data you should use Proc SURVEYFREQ instead with one of the Chi-Square tests (e.g. CHISQ option on the TABLES statement.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;PROC SURVEYFREQ data=final nomcar;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;STRATA sdmvstra;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CLUSTER sdmvpsu;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;WEIGHT MEC4YR;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TABLES DEPRESSION_INDICATOR*riagendr/CHISQ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 12:25:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/T-Test-Complex-Survey-Data/m-p/645269#M30963</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2020-05-05T12:25:59Z</dc:date>
    </item>
  </channel>
</rss>

