<?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 GLIMMIX on Multivariate model in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/GLIMMIX-on-Multivariate-model/m-p/243060#M45187</link>
    <description>&lt;P&gt;Hello all, I'm new to using SAS and has been struggling to verify if my code is doing exactly what I would like to assess.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm doing modeling for the effects of surgical intervention on certain brain metabolites&lt;/P&gt;&lt;P&gt;These are the variables&lt;/P&gt;&lt;P&gt;&lt;U&gt;periop&lt;/U&gt; - reading taken around surgical time (one per subject)&lt;/P&gt;&lt;P&gt;&lt;U&gt;age&lt;/U&gt; - age of the subject (patient age has high correlation with metabolite measurement)&lt;/P&gt;&lt;P&gt;&lt;U&gt;id&lt;/U&gt;&amp;nbsp;- each subject has a unique id&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 20px;"&gt;&lt;U&gt;met&lt;/U&gt; - metabolite (dependent variable) - there are potentially two time points where each subject was measured, before surgery and after surgery. &amp;nbsp;Unfortunately, some of the subjects only received one metabolite measurement, and are not consistent when they received them. About 50% of subjects received both time points, 30% pre surgery, 20% post surgery. &amp;nbsp;I've already run analysis using only pre or post, but would like to combine the two just to see how the overall correlation between &lt;U&gt;periop&lt;/U&gt; vs &lt;U&gt;met&lt;/U&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 20px;"&gt;&lt;U&gt;prepost&lt;/U&gt;&amp;nbsp;- this variable indicates whether the metabolite measurement was before&amp;nbsp;or after surgery.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 20px;"&gt;So a variance-covariance matrix is needed between PrePost and ID&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 20px;"&gt;For this I'm using a mixed effect model and this is my code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 20px;"&gt;PROC GLIMMIX ORDER&amp;nbsp;= dataset;&lt;BR /&gt;CLASS id;&lt;BR /&gt;MODEL met = age&amp;nbsp;periop&amp;nbsp;prepost&amp;nbsp;/ s;&lt;BR /&gt;random prepost&amp;nbsp;/ subject = id;&lt;BR /&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 20px;"&gt;Thank you in advance for your help&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 20px;"&gt;-V&lt;/SPAN&gt;&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>Tue, 12 Jan 2016 21:01:53 GMT</pubDate>
    <dc:creator>vinkl</dc:creator>
    <dc:date>2016-01-12T21:01:53Z</dc:date>
    <item>
      <title>GLIMMIX on Multivariate model</title>
      <link>https://communities.sas.com/t5/SAS-Programming/GLIMMIX-on-Multivariate-model/m-p/243060#M45187</link>
      <description>&lt;P&gt;Hello all, I'm new to using SAS and has been struggling to verify if my code is doing exactly what I would like to assess.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm doing modeling for the effects of surgical intervention on certain brain metabolites&lt;/P&gt;&lt;P&gt;These are the variables&lt;/P&gt;&lt;P&gt;&lt;U&gt;periop&lt;/U&gt; - reading taken around surgical time (one per subject)&lt;/P&gt;&lt;P&gt;&lt;U&gt;age&lt;/U&gt; - age of the subject (patient age has high correlation with metabolite measurement)&lt;/P&gt;&lt;P&gt;&lt;U&gt;id&lt;/U&gt;&amp;nbsp;- each subject has a unique id&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 20px;"&gt;&lt;U&gt;met&lt;/U&gt; - metabolite (dependent variable) - there are potentially two time points where each subject was measured, before surgery and after surgery. &amp;nbsp;Unfortunately, some of the subjects only received one metabolite measurement, and are not consistent when they received them. About 50% of subjects received both time points, 30% pre surgery, 20% post surgery. &amp;nbsp;I've already run analysis using only pre or post, but would like to combine the two just to see how the overall correlation between &lt;U&gt;periop&lt;/U&gt; vs &lt;U&gt;met&lt;/U&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 20px;"&gt;&lt;U&gt;prepost&lt;/U&gt;&amp;nbsp;- this variable indicates whether the metabolite measurement was before&amp;nbsp;or after surgery.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 20px;"&gt;So a variance-covariance matrix is needed between PrePost and ID&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 20px;"&gt;For this I'm using a mixed effect model and this is my code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 20px;"&gt;PROC GLIMMIX ORDER&amp;nbsp;= dataset;&lt;BR /&gt;CLASS id;&lt;BR /&gt;MODEL met = age&amp;nbsp;periop&amp;nbsp;prepost&amp;nbsp;/ s;&lt;BR /&gt;random prepost&amp;nbsp;/ subject = id;&lt;BR /&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 20px;"&gt;Thank you in advance for your help&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 20px;"&gt;-V&lt;/SPAN&gt;&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>Tue, 12 Jan 2016 21:01:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/GLIMMIX-on-Multivariate-model/m-p/243060#M45187</guid>
      <dc:creator>vinkl</dc:creator>
      <dc:date>2016-01-12T21:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: GLIMMIX on Multivariate model</title>
      <link>https://communities.sas.com/t5/SAS-Programming/GLIMMIX-on-Multivariate-model/m-p/243075#M45193</link>
      <description>&lt;P&gt;This is my alternate code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PROC GLIMMIX&lt;/STRONG&gt;&amp;nbsp;&lt;STRONG&gt;DATA&lt;/STRONG&gt;=dataset &lt;STRONG&gt;METHOD&lt;/STRONG&gt;=laplace;&lt;BR /&gt;&lt;STRONG&gt;CLASS&lt;/STRONG&gt;&amp;nbsp;prepost age&amp;nbsp;periop&amp;nbsp;id;&lt;BR /&gt;&lt;STRONG&gt;MODEL&lt;/STRONG&gt;&amp;nbsp;met = prepost&amp;nbsp;age&amp;nbsp;periop prepost*periop&amp;nbsp;age*periop&amp;nbsp;/ solution;&lt;BR /&gt;&lt;STRONG&gt;RANDOM&lt;/STRONG&gt; periop / &lt;STRONG&gt;SUBJECT&lt;/STRONG&gt;&amp;nbsp;= id(prepost&amp;nbsp;age) &lt;STRONG&gt;TYPE&lt;/STRONG&gt;&amp;nbsp;= chol;&lt;BR /&gt;&lt;STRONG&gt;COVTEST DIAGR&lt;/STRONG&gt;;&lt;BR /&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2016 21:48:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/GLIMMIX-on-Multivariate-model/m-p/243075#M45193</guid>
      <dc:creator>vinkl</dc:creator>
      <dc:date>2016-01-12T21:48:59Z</dc:date>
    </item>
  </channel>
</rss>

