<?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: Glimmix model: confirmation and error debugging in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Glimmix-model-confirmation-and-error-debugging/m-p/376398#M19736</link>
    <description>&lt;P&gt;Hmm. If TRIAL is the factor for pre/post (in other words, if TRIAL has two levels, one for pre and one for post), then what is TIME?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 17 Jul 2017 04:20:24 GMT</pubDate>
    <dc:creator>sld</dc:creator>
    <dc:date>2017-07-17T04:20:24Z</dc:date>
    <item>
      <title>Glimmix model: confirmation and error debugging</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Glimmix-model-confirmation-and-error-debugging/m-p/376172#M19724</link>
      <description>&lt;P&gt;I am trying to run a mixed model on a very small number of subjects with pre-post data. the data was collected over time simply due to the nature of the intervention, the collected timpoints pre and post and between patients are totally random and not equally spaced. I want to simples conclude that the post was better than the pre (which means the post values are greater, overall, than the pre). After some research, I came up with this model:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc glimmix data=long;&lt;BR /&gt;&amp;nbsp; class Trial id;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;model y = Trial | time / solution;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;random intercept / subject=id;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;random intercept time/ subject=Trial*id type=sp(pow);&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone confirm that this indeed the best way to model this research question?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If so, I am getting the error message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR 79-322: Expecting a (.&lt;BR /&gt;ERROR 76-322: Syntax error, statement will be ignored.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;at the end of the second random statement. Cant see to figure out why. Any help would be appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2017 23:03:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Glimmix-model-confirmation-and-error-debugging/m-p/376172#M19724</guid>
      <dc:creator>Melk</dc:creator>
      <dc:date>2017-07-14T23:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: Glimmix model: confirmation and error debugging</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Glimmix-model-confirmation-and-error-debugging/m-p/376173#M19725</link>
      <description>&lt;P&gt;A list is expected. &amp;nbsp;Here is the doc (without the formulas).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetVersion=14.2&amp;amp;docsetTarget=statug_glimmix_syntax24.htm&amp;amp;locale=en#statug.glimmix.gmxrandomtype" target="_blank"&gt;http://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetVersion=14.2&amp;amp;docsetTarget=statug_glimmix_syntax24.htm&amp;amp;locale=en#statug.glimmix.gmxrandomtype&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=" aa-term "&gt;SP(POW)(&lt;SPAN class=" aa-argument"&gt;c-list&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;models a power covariance structure&amp;nbsp;&lt;/P&gt;
&lt;P&gt;where&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;. This is a reparameterization of the exponential structure, TYPE=SP(EXP). Specifically,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;. See TYPE=SP(EXP) for the computation of the distance&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;from the variables specified in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=" aa-argument"&gt;c-list&lt;/SPAN&gt;. When the estimated value of&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;becomes negative, the computed covariance is multiplied by&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to account for the negativity.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2017 23:25:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Glimmix-model-confirmation-and-error-debugging/m-p/376173#M19725</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2017-07-14T23:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: Glimmix model: confirmation and error debugging</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Glimmix-model-confirmation-and-error-debugging/m-p/376174#M19726</link>
      <description>&lt;P&gt;The syntax is TYPE=SP(POW)(time)&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2017 23:26:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Glimmix-model-confirmation-and-error-debugging/m-p/376174#M19726</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-07-14T23:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: Glimmix model: confirmation and error debugging</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Glimmix-model-confirmation-and-error-debugging/m-p/376178#M19727</link>
      <description>&lt;P&gt;Thank you, I think I should be interpreting the time by trial interaction here, but the research question actually has nothing to do with difference by time- would it be more appropriate to report just the estimates for trial?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run the model with the above code, trial is insignificant&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I remove the interaction and just run the model on trial, trial becomes significant.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on my reseach question - is it ok to remove the interaction ?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2017 23:58:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Glimmix-model-confirmation-and-error-debugging/m-p/376178#M19727</guid>
      <dc:creator>Melk</dc:creator>
      <dc:date>2017-07-14T23:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: Glimmix model: confirmation and error debugging</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Glimmix-model-confirmation-and-error-debugging/m-p/376179#M19728</link>
      <description>&lt;P&gt;Actually, I am a little new to the glimmix procedure, so forgive me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run the model with the above code, trial is insignificant&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I remove the interaction and just run the model on trial, trial becomes significant.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on my reseach question - is it ok to remove the interaction ?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2017 23:54:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Glimmix-model-confirmation-and-error-debugging/m-p/376179#M19728</guid>
      <dc:creator>Melk</dc:creator>
      <dc:date>2017-07-14T23:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: Glimmix model: confirmation and error debugging</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Glimmix-model-confirmation-and-error-debugging/m-p/376180#M19729</link>
      <description>&lt;P&gt;Sorry. I'll have to defer to others on the best way to set up your model. &amp;nbsp;I just responded because I knew the nature of your syntax error question.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2017 23:56:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Glimmix-model-confirmation-and-error-debugging/m-p/376180#M19729</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2017-07-14T23:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: Glimmix model: confirmation and error debugging</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Glimmix-model-confirmation-and-error-debugging/m-p/376269#M19731</link>
      <description>&lt;P&gt;What is the TRIAL factor, and what role does it play in your study?&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jul 2017 20:46:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Glimmix-model-confirmation-and-error-debugging/m-p/376269#M19731</guid>
      <dc:creator>sld</dc:creator>
      <dc:date>2017-07-15T20:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: Glimmix model: confirmation and error debugging</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Glimmix-model-confirmation-and-error-debugging/m-p/376387#M19735</link>
      <description>&lt;P&gt;Data is longitudinal; trial = pre or post variable.&lt;/P&gt;</description>
      <pubDate>Sun, 16 Jul 2017 22:39:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Glimmix-model-confirmation-and-error-debugging/m-p/376387#M19735</guid>
      <dc:creator>Melk</dc:creator>
      <dc:date>2017-07-16T22:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: Glimmix model: confirmation and error debugging</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Glimmix-model-confirmation-and-error-debugging/m-p/376398#M19736</link>
      <description>&lt;P&gt;Hmm. If TRIAL is the factor for pre/post (in other words, if TRIAL has two levels, one for pre and one for post), then what is TIME?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2017 04:20:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Glimmix-model-confirmation-and-error-debugging/m-p/376398#M19736</guid>
      <dc:creator>sld</dc:creator>
      <dc:date>2017-07-17T04:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: Glimmix model: confirmation and error debugging</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Glimmix-model-confirmation-and-error-debugging/m-p/376648#M19755</link>
      <description>&lt;P&gt;Yes, a big confusing! At each trial (pre and post) the subject performed a task repeatedly over an interval of time, measurements were recorded at random intervals of time (5 secs, 10 secs, 18 sec, etc.)&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2017 16:47:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Glimmix-model-confirmation-and-error-debugging/m-p/376648#M19755</guid>
      <dc:creator>Melk</dc:creator>
      <dc:date>2017-07-17T16:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: Glimmix model: confirmation and error debugging</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Glimmix-model-confirmation-and-error-debugging/m-p/376657#M19757</link>
      <description>&lt;P&gt;Why did you use random time intervals? How many time intervals do you have for each trial for each subject? Do you have the same number of time observations for each trial for each subject? Does the response Y have a linear relationship with TIME?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2017 17:12:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Glimmix-model-confirmation-and-error-debugging/m-p/376657#M19757</guid>
      <dc:creator>sld</dc:creator>
      <dc:date>2017-07-17T17:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: Glimmix model: confirmation and error debugging</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Glimmix-model-confirmation-and-error-debugging/m-p/376661#M19758</link>
      <description>&lt;P&gt;The time intervals for each trial/subject can vary - some have 5, some have 3, and the timepoints where measurements were taken were random (e.g. subject 1 had measurements at 5, 16, 21, and 27 secs while subject 2 had measurements at 3, 10, and 19 secs).&lt;/P&gt;&lt;P&gt;Y has a close to linear relationship with time.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2017 17:21:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Glimmix-model-confirmation-and-error-debugging/m-p/376661#M19758</guid>
      <dc:creator>Melk</dc:creator>
      <dc:date>2017-07-17T17:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: Glimmix model: confirmation and error debugging</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Glimmix-model-confirmation-and-error-debugging/m-p/376695#M19759</link>
      <description>&lt;P&gt;Then I think something like this code might be appropriate, where CTIME = TIME&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glimmix data=long;
    class trial id ctime;
    model y = trial | time / solution ddfm=kr2;
    random intercept / subject=id;
    random intercept time / subject=trial*id type=vc;
    random ctime / subject=trial*id type=sp(pow)(time) residual;
    output out=long_out pred=pred pred(noblup)=predpa;
    run;
/*  Observed and predicted (BLUP) for each trial for each id */
proc sgpanel data=long_out;
    panelby id;
    scatter x=time y=y / group=trial;
    series x=time y=pred / group=trial;
    run;
/*  Observed and predicted (BLUE) for each trial */
proc sgpanel data=long_out;
    panelby trial;
    series x=time y=y / group=id lineattrs=(pattern=2 color=red);
    series x=time y=predpa / lineattrs=(pattern=1 color=black);
    run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Consider the statement&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;random intercept time / subject=trial*id type=vc;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You are defining a 2 x 2 covariance matrix here. With TYPE=VC, it estimates (1) the variance among intercepts, and (2) the variance among slopes. With TYPE=UN, it&amp;nbsp;&lt;SPAN&gt;estimates (1) the variance among intercepts, (2) the variance among slopes and (3) the covariance among intercepts and slopes. Because it is just a 2 x 2 matrix,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;TYPE=SP(POW)(c-list) makes no sense here. Be sure that you have an adequate understanding of random coefficient models. &lt;A title="SAS for Mixed Models, 2nd ed" href="https://www.sas.com/store/books/categories/usage-and-reference/sas-for-mixed-models-second-edition/prodBK_59882_en.html" target="_self"&gt;https://www.sas.com/store/books/categories/usage-and-reference/sas-for-mixed-models-second-edition/prodBK_59882_en.html&lt;/A&gt;&amp;nbsp;by Littell et al. has a good chapter on the topic.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2017 18:40:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Glimmix-model-confirmation-and-error-debugging/m-p/376695#M19759</guid>
      <dc:creator>sld</dc:creator>
      <dc:date>2017-07-17T18:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: Glimmix model: confirmation and error debugging</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Glimmix-model-confirmation-and-error-debugging/m-p/376800#M19766</link>
      <description>&lt;P&gt;So is time a SAS keyword here?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2017 23:27:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Glimmix-model-confirmation-and-error-debugging/m-p/376800#M19766</guid>
      <dc:creator>Melk</dc:creator>
      <dc:date>2017-07-17T23:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: Glimmix model: confirmation and error debugging</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Glimmix-model-confirmation-and-error-debugging/m-p/376806#M19767</link>
      <description>&lt;P&gt;Here it is the factor you identified as TIME in your original post. I don't know the "blue or not blue" rule for the code inset.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2017 23:38:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Glimmix-model-confirmation-and-error-debugging/m-p/376806#M19767</guid>
      <dc:creator>sld</dc:creator>
      <dc:date>2017-07-17T23:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: Glimmix model: confirmation and error debugging</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Glimmix-model-confirmation-and-error-debugging/m-p/377854#M19828</link>
      <description>&lt;P&gt;THank you. I have been looking into this suggestion, would I interpret the "Trial" fixed effects to be able to conclude that my mean 'post' Y is significantly greater than my mean 'pre' Y?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2017 17:35:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Glimmix-model-confirmation-and-error-debugging/m-p/377854#M19828</guid>
      <dc:creator>Melk</dc:creator>
      <dc:date>2017-07-20T17:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: Glimmix model: confirmation and error debugging</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Glimmix-model-confirmation-and-error-debugging/m-p/377857#M19829</link>
      <description>&lt;P&gt;Yes, TRIAL is the effect of pre versus post.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2017 17:45:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Glimmix-model-confirmation-and-error-debugging/m-p/377857#M19829</guid>
      <dc:creator>sld</dc:creator>
      <dc:date>2017-07-20T17:45:04Z</dc:date>
    </item>
  </channel>
</rss>

