<?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: wald test in heterogenous variance model using proc glimmix in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/wald-test-in-heterogenous-variance-model-using-proc-glimmix/m-p/765349#M37391</link>
    <description>this is full code:&lt;BR /&gt;&lt;BR /&gt;/*Entering data manually*/&lt;BR /&gt;DATA a;&lt;BR /&gt;input batch 1 ref 3-5 new 6-9;&lt;BR /&gt;diff=new-ref;&lt;BR /&gt;datalines;&lt;BR /&gt;1 116 119&lt;BR /&gt;2 115 121&lt;BR /&gt;3 103 121&lt;BR /&gt;4 135 130&lt;BR /&gt;5 108 116&lt;BR /&gt;6 113 122&lt;BR /&gt;7 115 117&lt;BR /&gt;8 127 124&lt;BR /&gt;;&lt;BR /&gt;proc print data=a; run;&lt;BR /&gt;&lt;BR /&gt;*wide-format data to long-format data;&lt;BR /&gt;DATA b;&lt;BR /&gt;SET a;&lt;BR /&gt;ARRAY trials[2] ref new;&lt;BR /&gt;DO TIME = 1 TO 2;&lt;BR /&gt;y = trials[TIME];&lt;BR /&gt;trial = TIME-1;&lt;BR /&gt;OUTPUT; *wihtout this time=3 values overwrite all;&lt;BR /&gt;END;&lt;BR /&gt;KEEP batch y trial;&lt;BR /&gt;proc print data=b (OBS=12) NOOBS; run;&lt;BR /&gt;&lt;BR /&gt;*run glm;&lt;BR /&gt;PROC GLIMMIX data=b plots=residualpanel;&lt;BR /&gt;CLASS trial (ref=first);&lt;BR /&gt;MODEL y=trial /solution ddfm=KR;&lt;BR /&gt;random _residual_ /group=trial type=VC;&lt;BR /&gt;covtest /wald;&lt;BR /&gt;LSMEANS trial /alpha=0.05 cl diff plot=diffplot;&lt;BR /&gt;run;</description>
    <pubDate>Wed, 01 Sep 2021 13:42:44 GMT</pubDate>
    <dc:creator>Tomchoi</dc:creator>
    <dc:date>2021-09-01T13:42:44Z</dc:date>
    <item>
      <title>wald test in heterogenous variance model using proc glimmix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/wald-test-in-heterogenous-variance-model-using-proc-glimmix/m-p/765205#M37384</link>
      <description>&lt;P&gt;when I run heterogeneous variance model using proc glimmix to test homogeneity of variance assumption I get this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DATA a;&lt;BR /&gt;input id 1 batch 1 ref 5-7 new 9-11;&lt;BR /&gt;diff=new-ref;&lt;BR /&gt;datalines;&lt;BR /&gt;1 116 119&lt;BR /&gt;2 115 121&lt;BR /&gt;3 103 121&lt;BR /&gt;4 135 130&lt;BR /&gt;5 108 116&lt;BR /&gt;6 113 122&lt;BR /&gt;7 115 117&lt;BR /&gt;8 127 124&lt;BR /&gt;;&lt;BR /&gt;keep batch ref new diff;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;*wide-format data to long-format data;&lt;BR /&gt;DATA b;&lt;BR /&gt;SET a;&lt;BR /&gt;ARRAY trials[2] ref new;&lt;BR /&gt;DO TIME = 1 TO 2;&lt;BR /&gt;y = trials[TIME];&lt;BR /&gt;trial = TIME-1;&lt;BR /&gt;OUTPUT; *wihtout this time=3 values overwrite all;&lt;BR /&gt;END;&lt;BR /&gt;KEEP batch y trial;&lt;BR /&gt;proc print data=c (OBS=12) NOOBS; run;&lt;/P&gt;&lt;P&gt;*run glm;&lt;BR /&gt;PROC GLIMMIX data=b plots=residualpanel;&lt;BR /&gt;CLASS trial (ref=first);&lt;BR /&gt;MODEL y=trial /solution ddfm=KR;&lt;BR /&gt;random _residual_ /group=trial type=VC;&lt;BR /&gt;covtest /wald;&lt;BR /&gt;LSMEANS trial /alpha=0.05 cl diff plot=diffplot;&lt;BR /&gt;run;&lt;/P&gt;&lt;DIV class="branch"&gt;&lt;DIV align="center"&gt;Covariance Parameter Estimates&lt;/DIV&gt;&lt;DIV align="center"&gt;&lt;TABLE cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Cov Parm&lt;/TD&gt;&lt;TD&gt;Group&lt;/TD&gt;&lt;TD&gt;Estimate&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Standard&lt;/P&gt;&lt;P&gt;Error&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;Z Value&lt;/TD&gt;&lt;TD&gt;Pr &amp;gt; Z&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Residual (VC)&lt;/TD&gt;&lt;TD&gt;trial 1&lt;/TD&gt;&lt;TD&gt;19.3571&lt;/TD&gt;&lt;TD&gt;10.3468&lt;/TD&gt;&lt;TD&gt;1.87&lt;/TD&gt;&lt;TD&gt;0.0307&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Residual (VC)&lt;/TD&gt;&lt;TD&gt;trial 0&lt;/TD&gt;&lt;TD&gt;103.43&lt;/TD&gt;&lt;TD&gt;55.2849&lt;/TD&gt;&lt;TD&gt;1.87&lt;/TD&gt;&lt;TD&gt;0.0307&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="branch"&gt;&lt;DIV align="center"&gt;&lt;BR /&gt;&lt;P class="lia-align-left"&gt;my question is: why z and p values for variance components are fixed to be equal to each other? is this some sort of model constraints? If the sample do not pass the homogeneity variance test so I end up keeping heterogenous variance in the model, can i use and interpret these p-values? Thanks!&lt;/P&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;Best,&lt;/P&gt;&lt;P class="lia-align-left"&gt;Tom&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 01 Sep 2021 00:51:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/wald-test-in-heterogenous-variance-model-using-proc-glimmix/m-p/765205#M37384</guid>
      <dc:creator>Tomchoi</dc:creator>
      <dc:date>2021-09-01T00:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: wald test in heterogenous variance model using proc glimmix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/wald-test-in-heterogenous-variance-model-using-proc-glimmix/m-p/765331#M37389</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/395663"&gt;@Tomchoi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can't reproduce what you have, given your set-up code (The GLIMMIX part looks OK for now).&amp;nbsp; When I run everything down to the PROC PRINT, the dataset WORK.b is missing the y variable for all instances of Trial 0.&amp;nbsp; Could you double check what is going on?&amp;nbsp; Once we have values for Trial 0, then we can see what GLIMMIX is up to.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Wed, 01 Sep 2021 12:50:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/wald-test-in-heterogenous-variance-model-using-proc-glimmix/m-p/765331#M37389</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2021-09-01T12:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: wald test in heterogenous variance model using proc glimmix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/wald-test-in-heterogenous-variance-model-using-proc-glimmix/m-p/765348#M37390</link>
      <description>sorry there was mistake with data procedure. pls use this code:&lt;BR /&gt;&lt;BR /&gt;DATA a;&lt;BR /&gt;input batch 1 ref 3-5 new 6-9;&lt;BR /&gt;diff=new-ref;&lt;BR /&gt;datalines;&lt;BR /&gt;1 116 119&lt;BR /&gt;2 115 121&lt;BR /&gt;3 103 121&lt;BR /&gt;4 135 130&lt;BR /&gt;5 108 116&lt;BR /&gt;6 113 122&lt;BR /&gt;7 115 117&lt;BR /&gt;8 127 124&lt;BR /&gt;;&lt;BR /&gt;proc print data=a; run;</description>
      <pubDate>Wed, 01 Sep 2021 13:40:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/wald-test-in-heterogenous-variance-model-using-proc-glimmix/m-p/765348#M37390</guid>
      <dc:creator>Tomchoi</dc:creator>
      <dc:date>2021-09-01T13:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: wald test in heterogenous variance model using proc glimmix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/wald-test-in-heterogenous-variance-model-using-proc-glimmix/m-p/765349#M37391</link>
      <description>this is full code:&lt;BR /&gt;&lt;BR /&gt;/*Entering data manually*/&lt;BR /&gt;DATA a;&lt;BR /&gt;input batch 1 ref 3-5 new 6-9;&lt;BR /&gt;diff=new-ref;&lt;BR /&gt;datalines;&lt;BR /&gt;1 116 119&lt;BR /&gt;2 115 121&lt;BR /&gt;3 103 121&lt;BR /&gt;4 135 130&lt;BR /&gt;5 108 116&lt;BR /&gt;6 113 122&lt;BR /&gt;7 115 117&lt;BR /&gt;8 127 124&lt;BR /&gt;;&lt;BR /&gt;proc print data=a; run;&lt;BR /&gt;&lt;BR /&gt;*wide-format data to long-format data;&lt;BR /&gt;DATA b;&lt;BR /&gt;SET a;&lt;BR /&gt;ARRAY trials[2] ref new;&lt;BR /&gt;DO TIME = 1 TO 2;&lt;BR /&gt;y = trials[TIME];&lt;BR /&gt;trial = TIME-1;&lt;BR /&gt;OUTPUT; *wihtout this time=3 values overwrite all;&lt;BR /&gt;END;&lt;BR /&gt;KEEP batch y trial;&lt;BR /&gt;proc print data=b (OBS=12) NOOBS; run;&lt;BR /&gt;&lt;BR /&gt;*run glm;&lt;BR /&gt;PROC GLIMMIX data=b plots=residualpanel;&lt;BR /&gt;CLASS trial (ref=first);&lt;BR /&gt;MODEL y=trial /solution ddfm=KR;&lt;BR /&gt;random _residual_ /group=trial type=VC;&lt;BR /&gt;covtest /wald;&lt;BR /&gt;LSMEANS trial /alpha=0.05 cl diff plot=diffplot;&lt;BR /&gt;run;</description>
      <pubDate>Wed, 01 Sep 2021 13:42:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/wald-test-in-heterogenous-variance-model-using-proc-glimmix/m-p/765349#M37391</guid>
      <dc:creator>Tomchoi</dc:creator>
      <dc:date>2021-09-01T13:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: wald test in heterogenous variance model using proc glimmix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/wald-test-in-heterogenous-variance-model-using-proc-glimmix/m-p/765362#M37394</link>
      <description>&lt;P&gt;Thanks,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/395663"&gt;@Tomchoi&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have poked and prodded at this, and it seems that no matter how I reparameterize, the Wald tests come out the same.&amp;nbsp; All I can guess is that the denominators (asymptotic standard errors) are wholly dependent on the estimate, so that algebraically you get the same ratio, and thus the same Z value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Wed, 01 Sep 2021 14:21:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/wald-test-in-heterogenous-variance-model-using-proc-glimmix/m-p/765362#M37394</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2021-09-01T14:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: wald test in heterogenous variance model using proc glimmix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/wald-test-in-heterogenous-variance-model-using-proc-glimmix/m-p/765962#M37440</link>
      <description>Hi. Thanks for your honest answer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; do you still think I can report &amp;amp; interpret the t values and p values?</description>
      <pubDate>Fri, 03 Sep 2021 23:10:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/wald-test-in-heterogenous-variance-model-using-proc-glimmix/m-p/765962#M37440</guid>
      <dc:creator>Tomchoi</dc:creator>
      <dc:date>2021-09-03T23:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: wald test in heterogenous variance model using proc glimmix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/wald-test-in-heterogenous-variance-model-using-proc-glimmix/m-p/766390#M37467</link>
      <description>&lt;P&gt;The fixed effect t values and p values certainly should be fine. I have some hesitation about the Wald chi-square and p values for the random effects with only 8 subjects, as these are asymptotically correct as the sample size approaches infinity, and while 8 is a large number for tests about fixed effects, it certainly is not for tests about variance components.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 14:16:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/wald-test-in-heterogenous-variance-model-using-proc-glimmix/m-p/766390#M37467</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2021-09-07T14:16:13Z</dc:date>
    </item>
  </channel>
</rss>

