<?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: A multivariate equivalent of an independent sample t test with unequal variance in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/A-multivariate-equivalent-of-an-independent-sample-t-test-with/m-p/843387#M41802</link>
    <description>&lt;P&gt;In order to use the covtest homogeneity option efficiently in GLIMMIX, you will need to specify something in a RANDOM statement and use the GROUP=option. Consider this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glimmix data =dataset2(WHERE=( Abdominal_pain3=1);
class after_intervention Acuity2;
model ED_Completed_Length_of_Stay__Min=after_intervention Acuity2;
random _residual_/group=after_intervention;
covtest 'common variance' homogeneity;  /* This does a likelihood ratio test for homogeneity */
lsmeans after_intervention;
contrast '0 vs 1' after_intervention -1 1;
 ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Now you may want to try various distributions for your dependent variable. If the data are truly non-normal, then it probably doesn't matter how large your dataset is. Fitting what you have now treats the residuals as normally distributed, so at least look at the plots of the studentized residuals.&amp;nbsp; For a lot of time to event/waiting time data like this, a gamma distribution fits better than a normal.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Nov 2022 15:41:53 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2022-11-09T15:41:53Z</dc:date>
    <item>
      <title>A multivariate equivalent of an independent sample t test with unequal variance</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/A-multivariate-equivalent-of-an-independent-sample-t-test-with/m-p/842966#M41772</link>
      <description>&lt;P&gt;Please, I need help with a multivariate equivalent of an independent sample t test with unequal variance.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The outcome is not normally distributed but has a very large sample size (central limit theorem) while the primary predictor is binary and the secondary predictor has 3 levels.&amp;nbsp;The primary predictor has unequal variance. I was considering the factorial ANOVA but I it does not take into account unequal variance. Please, what statistical test can I use to evaluate this?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you in advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; proc glm data = Dataset2;
 class Acuity2 after_intervention;
 model ED_Completed_Length_of_Stay__Min= Acuity2 after_intervention/ss3;
 means after_intervention;
 WHERE Abdominal_pain3=1;
run; &lt;BR /&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glimmix data =dataset2;
class after_intervention Acuity2;
model ED_Completed_Length_of_Stay__Min=after_intervention Acuity2;
covtest 'common variance' homogeneity;  /* This does a likelihood ratio test for homogeneity */
lsmeans after_intervention;
contrast '0 vs 1' after_intervention -1 1;
 WHERE Abdominal_pain3=1;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 20:26:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/A-multivariate-equivalent-of-an-independent-sample-t-test-with/m-p/842966#M41772</guid>
      <dc:creator>UcheOkoro</dc:creator>
      <dc:date>2022-11-07T20:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: A multivariate equivalent of an independent sample t test with unequal variance</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/A-multivariate-equivalent-of-an-independent-sample-t-test-with/m-p/842985#M41773</link>
      <description>&lt;P&gt;Which variable are you testing for equal means? That's what a T-test is testing generally.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 21:22:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/A-multivariate-equivalent-of-an-independent-sample-t-test-with/m-p/842985#M41773</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-11-07T21:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: A multivariate equivalent of an independent sample t test with unequal variance</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/A-multivariate-equivalent-of-an-independent-sample-t-test-with/m-p/842987#M41774</link>
      <description>&lt;P&gt;Thank you for your response. I am testing the after_intervention which is binary for equal means.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 21:25:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/A-multivariate-equivalent-of-an-independent-sample-t-test-with/m-p/842987#M41774</guid>
      <dc:creator>UcheOkoro</dc:creator>
      <dc:date>2022-11-07T21:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: A multivariate equivalent of an independent sample t test with unequal variance</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/A-multivariate-equivalent-of-an-independent-sample-t-test-with/m-p/843387#M41802</link>
      <description>&lt;P&gt;In order to use the covtest homogeneity option efficiently in GLIMMIX, you will need to specify something in a RANDOM statement and use the GROUP=option. Consider this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glimmix data =dataset2(WHERE=( Abdominal_pain3=1);
class after_intervention Acuity2;
model ED_Completed_Length_of_Stay__Min=after_intervention Acuity2;
random _residual_/group=after_intervention;
covtest 'common variance' homogeneity;  /* This does a likelihood ratio test for homogeneity */
lsmeans after_intervention;
contrast '0 vs 1' after_intervention -1 1;
 ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Now you may want to try various distributions for your dependent variable. If the data are truly non-normal, then it probably doesn't matter how large your dataset is. Fitting what you have now treats the residuals as normally distributed, so at least look at the plots of the studentized residuals.&amp;nbsp; For a lot of time to event/waiting time data like this, a gamma distribution fits better than a normal.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 15:41:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/A-multivariate-equivalent-of-an-independent-sample-t-test-with/m-p/843387#M41802</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2022-11-09T15:41:53Z</dc:date>
    </item>
  </channel>
</rss>

