<?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 Using repeated measures in Proc glimmix and get the adjusted percent in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Using-repeated-measures-in-Proc-glimmix-and-get-the-adjusted/m-p/541104#M27152</link>
    <description>&lt;P&gt;hello, I have a 4 years longitudinal data set from 2013 to 2016.&amp;nbsp;the VL_status is patients viral load status with three level response (never suppressed, durable suppressed, and intermittent suppressed).&amp;nbsp;I want to analyze the data using proc glimmix because it can give me the adjusted percentage for each group. here is the code I used but I got&amp;nbsp;an error message.&amp;nbsp;could anybody tell me if the code I used is correct for the longitudinal study or not and what I have missed here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;153 /*******calculate the adjusted percent *********/&lt;/P&gt;
&lt;P&gt;154 proc glimmix data=out2.Client_VL_Euci44_f;&lt;/P&gt;
&lt;P&gt;155 class euci44 year raceeth;&lt;/P&gt;
&lt;P&gt;156 model vl_status =year raceeth&lt;/P&gt;
&lt;P&gt;157 /solution dist=binomial link=logit;&lt;/P&gt;
&lt;P&gt;158 lsmeans raceeth/om ilink;&lt;/P&gt;
&lt;P&gt;159 format vl_status vlstatusfmt. gender genderfmt. raceeth raceethfmt.;&lt;/P&gt;
&lt;P&gt;160 run;&lt;/P&gt;
&lt;P&gt;　&lt;/P&gt;
&lt;P&gt;　&lt;/P&gt;
&lt;P&gt;　&lt;/P&gt;
&lt;P&gt;WARNING: Class levels for EUCI44 are not printed because of excessive size.&lt;/P&gt;
&lt;P&gt;NOTE: Some observations are not used in the analysis because of: missing fixed&lt;/P&gt;
&lt;P&gt;effects (n=6258).&lt;/P&gt;
&lt;P&gt;NOTE: Convergence criterion (GCONV=1E-8) satisfied.&lt;/P&gt;
&lt;P&gt;NOTE: At least one element of the gradient is greater than 1e-3.&lt;/P&gt;
&lt;P&gt;NOTE: PROCEDURE GLIMMIX used (Total process time):&lt;/P&gt;
&lt;P&gt;real time 37.53 seconds&lt;/P&gt;
&lt;P&gt;cpu time 37.70 seconds&lt;/P&gt;</description>
    <pubDate>Thu, 07 Mar 2019 14:57:04 GMT</pubDate>
    <dc:creator>juliajulia</dc:creator>
    <dc:date>2019-03-07T14:57:04Z</dc:date>
    <item>
      <title>Using repeated measures in Proc glimmix and get the adjusted percent</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Using-repeated-measures-in-Proc-glimmix-and-get-the-adjusted/m-p/541104#M27152</link>
      <description>&lt;P&gt;hello, I have a 4 years longitudinal data set from 2013 to 2016.&amp;nbsp;the VL_status is patients viral load status with three level response (never suppressed, durable suppressed, and intermittent suppressed).&amp;nbsp;I want to analyze the data using proc glimmix because it can give me the adjusted percentage for each group. here is the code I used but I got&amp;nbsp;an error message.&amp;nbsp;could anybody tell me if the code I used is correct for the longitudinal study or not and what I have missed here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;153 /*******calculate the adjusted percent *********/&lt;/P&gt;
&lt;P&gt;154 proc glimmix data=out2.Client_VL_Euci44_f;&lt;/P&gt;
&lt;P&gt;155 class euci44 year raceeth;&lt;/P&gt;
&lt;P&gt;156 model vl_status =year raceeth&lt;/P&gt;
&lt;P&gt;157 /solution dist=binomial link=logit;&lt;/P&gt;
&lt;P&gt;158 lsmeans raceeth/om ilink;&lt;/P&gt;
&lt;P&gt;159 format vl_status vlstatusfmt. gender genderfmt. raceeth raceethfmt.;&lt;/P&gt;
&lt;P&gt;160 run;&lt;/P&gt;
&lt;P&gt;　&lt;/P&gt;
&lt;P&gt;　&lt;/P&gt;
&lt;P&gt;　&lt;/P&gt;
&lt;P&gt;WARNING: Class levels for EUCI44 are not printed because of excessive size.&lt;/P&gt;
&lt;P&gt;NOTE: Some observations are not used in the analysis because of: missing fixed&lt;/P&gt;
&lt;P&gt;effects (n=6258).&lt;/P&gt;
&lt;P&gt;NOTE: Convergence criterion (GCONV=1E-8) satisfied.&lt;/P&gt;
&lt;P&gt;NOTE: At least one element of the gradient is greater than 1e-3.&lt;/P&gt;
&lt;P&gt;NOTE: PROCEDURE GLIMMIX used (Total process time):&lt;/P&gt;
&lt;P&gt;real time 37.53 seconds&lt;/P&gt;
&lt;P&gt;cpu time 37.70 seconds&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 14:57:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Using-repeated-measures-in-Proc-glimmix-and-get-the-adjusted/m-p/541104#M27152</guid>
      <dc:creator>juliajulia</dc:creator>
      <dc:date>2019-03-07T14:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using repeated measures in Proc glimmix and get the adjusted percent</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Using-repeated-measures-in-Proc-glimmix-and-get-the-adjusted/m-p/541744#M27165</link>
      <description>&lt;P&gt;First, your output is not BINOMIAL but rather MULTINOMIAL.&lt;BR /&gt;&lt;BR /&gt;Second, you do not have any r-side effects to account for repeated measures. Your code should look something like this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glimmix data=out2.Client_VL_Euci44_f;
  class &amp;lt;SubjectID&amp;gt; euci44 year raceeth;
  model vl_status =year raceeth /solution dist=multinomial link=logit;
  random Year / sub=&amp;lt;SubjectID&amp;gt; _residual_ type=ar(1);
  lsmeans raceeth / om ilink;
  format vl_status vlstatusfmt. gender genderfmt. raceeth raceethfmt.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 09 Mar 2019 22:02:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Using-repeated-measures-in-Proc-glimmix-and-get-the-adjusted/m-p/541744#M27165</guid>
      <dc:creator>Haris</dc:creator>
      <dc:date>2019-03-09T22:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: Using repeated measures in Proc glimmix and get the adjusted percent</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Using-repeated-measures-in-Proc-glimmix-and-get-the-adjusted/m-p/542916#M27193</link>
      <description>&lt;P&gt;Thanks Haris.&lt;/P&gt;
&lt;P&gt;I run the code but it says the&amp;nbsp; lsmeans is not an option for multinomial outcome. and the link has to choose from glogit and clogit. do you know are there any way to get the % and adjusted percentage?&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;glimmix&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=out2.Client_VL_Euci44_f;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;class&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; euci44 year raceeth;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;model&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; vl_status =year raceeth /&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;solution&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;dist&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=multinomial &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;link&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=glogit;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;random&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Year / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;sub&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=euci44 &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;type&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=ar(&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;) &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;group&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=vl_status;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#008000" face="Courier New" size="2"&gt;/* lsmeans raceeth / om ilink;*/&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;format&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; vl_status &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;vlstatusfmt.&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; gender &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;genderfmt.&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; raceeth &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;raceethfmt.&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2019 18:48:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Using-repeated-measures-in-Proc-glimmix-and-get-the-adjusted/m-p/542916#M27193</guid>
      <dc:creator>juliajulia</dc:creator>
      <dc:date>2019-03-13T18:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using repeated measures in Proc glimmix and get the adjusted percent</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Using-repeated-measures-in-Proc-glimmix-and-get-the-adjusted/m-p/542947#M27198</link>
      <description>Unfortunately I have not used MULTINOMIAL regression since school.  (LS)ESTIMATE statement should let you calculate whatever you need out of the model.&lt;BR /&gt;Good luck!&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Mar 2019 21:27:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Using-repeated-measures-in-Proc-glimmix-and-get-the-adjusted/m-p/542947#M27198</guid>
      <dc:creator>Haris</dc:creator>
      <dc:date>2019-03-13T21:27:22Z</dc:date>
    </item>
  </channel>
</rss>

