<?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: Test independence in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Test-independence/m-p/766188#M242795</link>
    <description>Thank you, yes this makes a lot more sense. My categorical variable, levels 1 2 &amp;amp; 3, is transformed from raw data using if statements. So if I worked with the raw data I had to test normality and equality of variance for both genders, and if those assumptions held, then test independence. But with only categorical data I'll use PROC FREQ immediately.</description>
    <pubDate>Mon, 06 Sep 2021 09:56:10 GMT</pubDate>
    <dc:creator>Erik3</dc:creator>
    <dc:date>2021-09-06T09:56:10Z</dc:date>
    <item>
      <title>Test independence</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Test-independence/m-p/766146#M242772</link>
      <description>&lt;P&gt;Hi, I want to test whether my gender variable effects my categorical variable, with levels say 1, 2 and 3, in any way. I've done tested the assumption for normality, it does not hold.&amp;nbsp; What PROC statement should I use to test independence between my variables now rather than the PROC TTEST?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Sep 2021 21:16:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Test-independence/m-p/766146#M242772</guid>
      <dc:creator>Erik3</dc:creator>
      <dc:date>2021-09-05T21:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: Test independence</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Test-independence/m-p/766148#M242774</link>
      <description>&lt;P&gt;From your description, you have only categorical variables and so test of normality and t-tests are meaningless and also irrelevant. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It sounds like you want a chi-squared test from a simple contingency table using PROC FREQ.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Sep 2021 22:14:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Test-independence/m-p/766148#M242774</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-09-05T22:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: Test independence</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Test-independence/m-p/766188#M242795</link>
      <description>Thank you, yes this makes a lot more sense. My categorical variable, levels 1 2 &amp;amp; 3, is transformed from raw data using if statements. So if I worked with the raw data I had to test normality and equality of variance for both genders, and if those assumptions held, then test independence. But with only categorical data I'll use PROC FREQ immediately.</description>
      <pubDate>Mon, 06 Sep 2021 09:56:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Test-independence/m-p/766188#M242795</guid>
      <dc:creator>Erik3</dc:creator>
      <dc:date>2021-09-06T09:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: Test independence</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Test-independence/m-p/766193#M242797</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;My categorical variable, levels 1 2 &amp;amp; 3, is transformed from raw data using if statements.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Normally, I advise against this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;So if I worked with the raw data I had to test normality and equality of variance for both genders, and if those assumptions held, then test independence.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Not sure what "independence" means in this context. But since you mentioned t-tests, normality and equality of variance are necessary, but the Satterthwaite t-test handles the case where the variances are different. If you have large amounts of data, then the central limit theorem takes care of normality, and makes the standard t-test reasonable. (And if you don't have a lot of data, there are bootstrap tests and also non-parametric tests available in SAS)&lt;/P&gt;</description>
      <pubDate>Mon, 06 Sep 2021 10:21:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Test-independence/m-p/766193#M242797</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-09-06T10:21:25Z</dc:date>
    </item>
  </channel>
</rss>

