<?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 Subject Specific Estimates in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-Subject-Specific-Estimates/m-p/197645#M10606</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My period values are quarterly over 3 years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried your suggestion and my latest attempt produces a different error:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;&lt;STRONG&gt;WARNING: Obtaining minimum variance quadratic unbiased estimates as starting values for the &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;covariance parameters failed.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P&gt;This occurs after running the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc glimmix data=procdata13;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; class code period_count;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; model proc_count=code period_count code*period_count/ dist=NB solution ddfm=bw;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; random period_count /residual type=ar(1) subject=code;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nloptions maxiter=1000 gconv=1e-4 tech=nrridg;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lsmeans code*period_count/ilink;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on other suggests I have read in related posts on this problem/error message, here is what I have tried:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) I verified that all observations are uniquely specified by unique code values. Data is currently in long format. Would wide produce better results?&lt;/P&gt;&lt;P&gt;2) I tried using a multinomial distribution link=clogit.&lt;/P&gt;&lt;P&gt;3) I've tried various subsets of observations (as low as 88 unique codes and as high as 349 unique codes).&lt;/P&gt;&lt;P&gt;4) I wonder if the problem exists because of a poor ratio between # observations and columns in X? The following is a screen shot where I am evaluating 349 unique codes:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="11120" alt="regressionresults3.png" class="jive-image" src="https://communities.sas.com/legacyfs/online/11120_regressionresults3.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Jul 2015 14:10:10 GMT</pubDate>
    <dc:creator>aisley</dc:creator>
    <dc:date>2015-07-09T14:10:10Z</dc:date>
    <item>
      <title>GLIMMIX Subject Specific Estimates</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-Subject-Specific-Estimates/m-p/197639#M10600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to analyze a dataset where each subject has 12 repeated measures (quarterly over 3 years). I want to extract subject specific estimates of the time slope to evaluate if the subjects are changing significantly over time. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code I currently have consistently suggests that each subject is demonstrating a highly significant increase over time. This seems unlikely but I'm not sure how to adjust my syntax to run a more accurate model. Does anyone know how/why this model would find the slope coefficient for time significant for all cases?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A quick description of the study: We are creating a trending report which should flag procedure codes (subjects) that are showing a significant increase in the number of times it was billed over the time period being analyzed (3 years, by quarter). The outcome variable is being treated as a count (bounded at 0 but not necessarily whole numbers). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %macro Zeroes(numzeroes);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %local i;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %do i = 1 %to %eval(&amp;amp;numzeroes-1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %end;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %mend;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %macro EstimateStatement(numsubjects=);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %local i;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; proc glimmix data=procdata11;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; class code;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; model billing_count=period_count / dist=NB link=log&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; solution ddfm=betwithin;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; random intercept period_count / sub=code type=AR(1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; random _residual_; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %do i = 1 %to &amp;amp;numsubjects;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; estimate "Slope for Code &amp;amp;i" period_count 1 | period_count 1 / subject %Zeroes(&amp;amp;i);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %end;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ods output estimates=sscoeff;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %mend;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %EstimateStatement(numsubjects=&amp;amp;num_codes)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help on making this model more accurate and efficient would be greatly appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 18:58:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-Subject-Specific-Estimates/m-p/197639#M10600</guid>
      <dc:creator>aisley</dc:creator>
      <dc:date>2015-07-07T18:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: GLIMMIX Subject Specific Estimates</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-Subject-Specific-Estimates/m-p/197640#M10601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When interested in subject specific estimates of this type, why go to the trouble of doing a broad inference space (random effects) approach?&amp;nbsp; I believe you would be much more satisfied with the variable 'code' as a fixed effect.&amp;nbsp; The model would then look something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;model billing_count=code code*period_count/noint dist=nb solution ddfm=bw;&lt;/P&gt;&lt;P&gt;random period_count/residual type=ar(1) subject=code;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See how this works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 16:57:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-Subject-Specific-Estimates/m-p/197640#M10601</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2015-07-08T16:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: GLIMMIX Subject Specific Estimates</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-Subject-Specific-Estimates/m-p/197641#M10602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your suggestion! I tried running the model with your syntax and generated the following error: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERROR: Continuous effects are not allowed in R-side random effects.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;None of my covariates are continuous. It seems like it is occurring in response to my specification of 'residual'. Do you have any thoughts on why this may be happening?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 18:30:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-Subject-Specific-Estimates/m-p/197641#M10602</guid>
      <dc:creator>aisley</dc:creator>
      <dc:date>2015-07-08T18:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: GLIMMIX Subject Specific Estimates</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-Subject-Specific-Estimates/m-p/197642#M10603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Aha.&amp;nbsp; Period_count (the X variable for the slopes) is a continuous variable, and I flat missed it.&amp;nbsp; One way around this is with an EFFECT statement, and moving period_count into the class statement.&amp;nbsp; Something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc glimmix data=procdata11; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; class code period_count;&lt;/P&gt;&lt;P&gt;effect slopelinear=poly(period_count/degree=1);&lt;/P&gt;&lt;P&gt;model billing_count=code code*slopelinear/noint dist=nb solution ddfm=bw;&lt;/P&gt;&lt;P&gt;random period_count/residual type=ar(1) subject=code;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that this is much like example 44.15 in the SAS/STAT13.2 documentation: Comparing Multiple B-Splines, except I am substituting a linear polynomial.&lt;/P&gt;&lt;P&gt;The only thing that scares me about this is that period_count may have a LOT of levels.&amp;nbsp; Be sure to sort the data by code and period_count before trying this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 19:31:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-Subject-Specific-Estimates/m-p/197642#M10603</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2015-07-08T19:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: GLIMMIX Subject Specific Estimates</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-Subject-Specific-Estimates/m-p/197643#M10604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help, Steve!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I followed your suggestion (and some of the suggestions you posted in related questions) and created a duplicate time variable (period_count_continuous) to use in generating the linear polynomial :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc glimmix data=procdata13;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; class code period_count;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; effect slopelinear=poly(period_count_continuous/degree=1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; model proc_count=code code*slopelinear/noint dist=NB solution ddfm=bw;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; random period_count /residual type=ar(1) subject=code;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nloptions maxiter=1000 gconv=1e-4;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, now I am running into convergence problems. Things I have tried to remedy this:&lt;/P&gt;&lt;P&gt;1) Log transformed the dependent variable&lt;/P&gt;&lt;P&gt;2) Used nloptions to alter the convergence parameters&lt;/P&gt;&lt;P&gt;3) Sorted my data set by code and period_count (Code is a non-numeric variable so I could not remove it from the class statement. Period_count has 12 levels.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached a screen shot of my iteration history and it does not appear that I am close to convergence.&amp;nbsp; I've seen your posts in several other questions regarding this topic, do you have any other thoughts on best ways to tackle these convergence issues?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="07-08-2015 4-07-47 PM.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/11117_07-08-2015 4-07-47 PM.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Thanks for all your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 21:09:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-Subject-Specific-Estimates/m-p/197643#M10604</guid>
      <dc:creator>aisley</dc:creator>
      <dc:date>2015-07-08T21:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: GLIMMIX Subject Specific Estimates</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-Subject-Specific-Estimates/m-p/197644#M10605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, the way the objective function is jumping around, I would say the model is misspecified--it is trying everything to get things to fit, and nothing good is happening.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Time to try "sneaking up" on an approach.&amp;nbsp; With 12 levels of period_count, I suspect that it is a month indicator.&amp;nbsp; What you may have is some sort of seasonality in the data, so that an enforced linear approach in the model statement leads to the problem.&amp;nbsp; For now, try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc glimmix data=procdata13;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; class code period_count;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; model proc_count=code period_count code*period_count/ dist=NB solution ddfm=bw;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; random period_count /residual type=ar(1) subject=code;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nloptions maxiter=1000 gconv=1e-4 tech=nrridg;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lsmeans code*period_count/ilink;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This may take a while to run, especially if there are a lot of levels for code.&amp;nbsp; If this works, take a look at the lsmeans--do they look like a linear trend would explain them?&amp;nbsp; If so, we might be able go after the code estimate for slope using an LSMESTIMATE statement, or by post-processing with PROC REG.&amp;nbsp; Also, what is going on with the standard errors?&amp;nbsp; Are any seriously suspicious?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 12:23:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-Subject-Specific-Estimates/m-p/197644#M10605</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2015-07-09T12:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: GLIMMIX Subject Specific Estimates</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-Subject-Specific-Estimates/m-p/197645#M10606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My period values are quarterly over 3 years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried your suggestion and my latest attempt produces a different error:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;&lt;STRONG&gt;WARNING: Obtaining minimum variance quadratic unbiased estimates as starting values for the &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;covariance parameters failed.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P&gt;This occurs after running the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc glimmix data=procdata13;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; class code period_count;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; model proc_count=code period_count code*period_count/ dist=NB solution ddfm=bw;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; random period_count /residual type=ar(1) subject=code;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nloptions maxiter=1000 gconv=1e-4 tech=nrridg;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lsmeans code*period_count/ilink;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on other suggests I have read in related posts on this problem/error message, here is what I have tried:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) I verified that all observations are uniquely specified by unique code values. Data is currently in long format. Would wide produce better results?&lt;/P&gt;&lt;P&gt;2) I tried using a multinomial distribution link=clogit.&lt;/P&gt;&lt;P&gt;3) I've tried various subsets of observations (as low as 88 unique codes and as high as 349 unique codes).&lt;/P&gt;&lt;P&gt;4) I wonder if the problem exists because of a poor ratio between # observations and columns in X? The following is a screen shot where I am evaluating 349 unique codes:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="11120" alt="regressionresults3.png" class="jive-image" src="https://communities.sas.com/legacyfs/online/11120_regressionresults3.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 14:10:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-Subject-Specific-Estimates/m-p/197645#M10606</guid>
      <dc:creator>aisley</dc:creator>
      <dc:date>2015-07-09T14:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: GLIMMIX Subject Specific Estimates</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-Subject-Specific-Estimates/m-p/197646#M10607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Time to take another step back.&amp;nbsp; How many zeroes are in the data?&amp;nbsp; That sometimes can lead to problems getting good starting values.&amp;nbsp; I am pretty confident that the code is what you need, unless there is severe zero inflation, or something like quasi-separation (some level of code has nothing but zeroes).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To test out this, drop down to about 20 codes.&amp;nbsp; Try fitting with a normal distribution first just to see what happens.&amp;nbsp; If that runs without error, up the code count substantially, and look at the diagnostic plots available.&amp;nbsp; You may be in the situation that with the amount of data available to you, you may not need to specify a distribution.&amp;nbsp; I am hoping that the residuals converge in distribution to something near normal.&amp;nbsp; If this doesn't work, you'll probably need to look at other right-skewed distributions (lognormal maybe) or other PROCs to get a reasonable solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or--see what happens with a conditional model:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc glimmix data=procdata13 method=laplace;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; class code period_count;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; model proc_count=code period_count code*period_count/ dist=NB solution ddfm=bw;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; random period_count / type=ar(1) subject=code;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nloptions maxiter=1000 gconv=1e-4 tech=nrridg;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lsmeans code*period_count/ilink;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 14:27:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-Subject-Specific-Estimates/m-p/197646#M10607</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2015-07-09T14:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: GLIMMIX Subject Specific Estimates</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-Subject-Specific-Estimates/m-p/197647#M10608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You mentioned that you are treating your dependent variable as a count but that the observations are not necessarily whole numbers. How many cases are non-integers? It is possible you are running into some convergence/estimation problems due to applying the negative binomial distribution to a continuous variable. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why do you have fractional observations? (How do you send a fractional bill to someone?) If it is from adjusting/correcting the original count, try modeling the original count variable and then adjusting for the correction using a covariate or an offset. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;P&gt;Jon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 15:27:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-Subject-Specific-Estimates/m-p/197647#M10608</guid>
      <dc:creator>jrbrauer</dc:creator>
      <dc:date>2015-07-09T15:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: GLIMMIX Subject Specific Estimates</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-Subject-Specific-Estimates/m-p/197648#M10609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A __default_attr="729849" __jive_macro_name="user" class="jive_macro jive_macro_user" href="https://communities.sas.com/"&gt;&lt;/A&gt; makes an important point here--to model this data with a negative binomial distribution probably misses the statistical process generating the data.&amp;nbsp; You just don't get fractional values without some sort of divisor/offset variable that is used to standardize things.&amp;nbsp; If you have that variable on your dataset, it's appropriate to use the natural log of the value as an offset variable, in which case the model statement would then become:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;model proc_count=code period_count code*period_count/ dist=NB solution ddfm=bw offset=lntimevariable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where lntimevariable is the log of the length of time that you are dividing by.&amp;nbsp; Now proc_count should be an integer count.&amp;nbsp; This could help convergence substantially, especially if you have a lot of zeroes and fractional values less than 1.&amp;nbsp; The more I think about this, the more I fear that you have a zero-inflated distribution of some sort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jul 2015 12:34:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-Subject-Specific-Estimates/m-p/197648#M10609</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2015-07-10T12:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: GLIMMIX Subject Specific Estimates</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-Subject-Specific-Estimates/m-p/197649#M10610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;aisley,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I posted a response to your same question on StackOverflow&amp;nbsp; &lt;A href="http://stackoverflow.com/questions/31269838/sas-glimmix-subject-estimates" title="http://stackoverflow.com/questions/31269838/sas-glimmix-subject-estimates"&gt;regression - SAS GLIMMIX subject estimates - Stack Overflow&lt;/A&gt;, and I'll copy it here since it appears you haven't seen it. Perhaps some of my comments will be useful in addition to those by Steve and Jon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0 0 1em; font-size: 15px; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;Maybe the positive slope is an actual feature of the data? What do you see if you plot billing_count versus period_count for each code?&lt;/P&gt;&lt;P style="margin: 0 0 1em; font-size: 15px; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;Regarding the program, I have two suggestions.&lt;/P&gt;&lt;P style="margin: 0 0 1em; font-size: 15px; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;(1) The use of type=AR(1) in&lt;/P&gt;&lt;PRE style="margin: 0 0 1em; padding: 5px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; color: #222222; background-color: #eeeeee;"&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif;"&gt;random intercept period_count / sub=code type=AR(1); &lt;/CODE&gt;&lt;/PRE&gt;&lt;P style="margin: 0 0 1em; font-size: 15px; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;forces the variance of the intercepts to be equal to the variance of the slopes. This constraint may be inconsistent with the data. AR(1) is not a sensible covariance structure for a random coefficients model. Try type=UN or type=UN(1).&lt;/P&gt;&lt;P style="margin: 0 0 1em; font-size: 15px; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;(2) Drop&lt;/P&gt;&lt;PRE style="margin: 0 0 1em; padding: 5px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; color: #222222; background-color: #eeeeee;"&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif;"&gt;random _residual_; &lt;/CODE&gt;&lt;/PRE&gt;&lt;P style="margin: 0 0 1em; font-size: 15px; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;Its inclusion makes the model overspecified; the negative binomial distribution already has a scale parameter.&lt;/P&gt;&lt;P style="margin: 0 0 1em; font-size: 15px; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;Another thing to consider is that a random coefficients model produces shrinkage estimators, such that estimates for individual codes are shrunk toward the overall solution: the estimates of slope that you obtain from the random coefficients model will not be equal to the estimates you would obtain from separate regressions for each code. Kreft et al. have a nicely intuitive presentation of this topic (see p14 here &lt;A href="http://tinyurl.com/ns99ojh" rel="nofollow" style="color: #0c65a5;"&gt;http://tinyurl.com/ns99ojh&lt;/A&gt;).&lt;/P&gt;&lt;P style="margin: 0 0 1em; font-size: 15px; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="margin: 0 0 1em; font-size: 15px; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Including CODE as a fixed effects factor would address the shrinkage issue to some extent. But I am seriously doubtful about the appropriateness of including CODE as a fixed effects factor while also including CODE as a random subject effect. I'd think you would need to go one way or the other, but not both.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0 0 1em; font-size: 15px; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Susan&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jul 2015 18:04:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-Subject-Specific-Estimates/m-p/197649#M10610</guid>
      <dc:creator>sld</dc:creator>
      <dc:date>2015-07-10T18:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: GLIMMIX Subject Specific Estimates</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-Subject-Specific-Estimates/m-p/197650#M10611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am going to disagree a bit with &lt;A __default_attr="3008" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt; here.&amp;nbsp; For a narrow inference space (estimates only for the codes in hand), I think specifying code as the subject should work fine in the random statement.&amp;nbsp; It should be the equivalent of a GEE model, such as could be fit with PROC GENMOD.&amp;nbsp; Actually, moving the whole estimation problem over to PROC GENMOD may be the best way to get around many of the issues being run into here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2015 11:48:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-Subject-Specific-Estimates/m-p/197650#M10611</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2015-07-13T11:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: GLIMMIX Subject Specific Estimates</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-Subject-Specific-Estimates/m-p/197651#M10612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you to everyone who has offered suggestions!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To answer some of the above questions- I am getting some fractional values because I am attempting to analyze medical billing data. For some procedures (like those involving anesthesia), billing is done in 15 minute increments (thus, we could end up with counts at 1.5 as a hour and a half of anesthetic administration). This is not generally the case, however. If I additionally log transformed these counts, would a lognormal distribution be better fit?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In regards to the concerns of zero inflation-This was absolutely a concern initially. However, I have filtered for a complete case analysis where there is observed data in all the time points. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried fitting the data using proc genmod, glimmix, and mixed and am now confused about the relative merits of each. The following are examples of models which now successfully converge for my data set (u&lt;SPAN style="font-size: 13.3333330154419px;"&gt;sing type=UN was preventing my model from converging so I reverted to AR(1))&lt;/SPAN&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc glimmix data=procdata14 plots=residualpanel(conditional marginal);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; class code; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; model proc_count=code period_count code*period_count / dist=lognormal solution ddfm=betwithin ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; random period_count / sub=code type=AR(1);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="glimmix1.png" class="jive-image" src="https://communities.sas.com/legacyfs/online/11154_glimmix1.png" /&gt; &lt;IMG alt="glimmix2.png" class="jive-image" src="https://communities.sas.com/legacyfs/online/11155_glimmix2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc genmod data=procdata14;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; class code;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; model&amp;nbsp; proc_count= period_count code code*period_count&amp;nbsp; /&amp;nbsp; dist=normal link=log ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; repeated&amp;nbsp; subject=code / type=ar(1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; output&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; out&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = Residuals&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; resraw&amp;nbsp;&amp;nbsp;&amp;nbsp; = Resraw&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; stdreschi = Stdreschi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pred&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = Pred;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[The website prevented me from attaching the plots of these residuals]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2015 20:55:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-Subject-Specific-Estimates/m-p/197651#M10612</guid>
      <dc:creator>aisley</dc:creator>
      <dc:date>2015-07-13T20:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: GLIMMIX Subject Specific Estimates</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-Subject-Specific-Estimates/m-p/197652#M10613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, the GLIMMIX plots look pretty good, although it really looks like there is a nonlinear/quadratic effect that is not being fit in the model, based on the residual vs. predicted plot. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Be aware that there is a difference between a lognormal distribution, and a normal distribution with a log link.&amp;nbsp; For lognormal, the errors are assumed to be additive, while a normal with a log link essentially makes them multiplicative.&amp;nbsp; I suspect the plots from GENMOD may show this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To put everything on the same basis, try running the following code in GLIMMIX, which would fit a normal distribution with a log link:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc glimmix data=procdata14 plots=residualpanel(conditional marginal);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; class code; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; model proc_count=code period_count code*period_count / link=log solution ddfm=betwithin ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; random period_count / sub=code type=AR(1);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 11:30:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-Subject-Specific-Estimates/m-p/197652#M10613</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2015-07-14T11:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: GLIMMIX Subject Specific Estimates</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-Subject-Specific-Estimates/m-p/197653#M10614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, yes, thanks, &lt;A __default_attr="455729" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt; , I was still thinking about aisley’s first model that is a random coefficients model:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; proc glimmix data=dataset method=laplace;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; class code;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; model billing_count = period_count / dist=nb;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; random intercept period_count / subject=code type=un;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; estimate “Slope for Code 3” period_count | period_count / subject 0 0 1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(I’m ignoring the issue of distributions, counts and offsets here for simplicity.) You would not use CODE in the MODEL statement and also as the SUBJECT in the RANDOM statement where the specification was “random &lt;EM&gt;intercept&lt;/EM&gt; period_count”.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I totally agree with Steve that it is perfectly fine to use CODE as a fixed effects factor in the MODEL statement and as the SUBJECT in the RANDOM statement,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; proc glimmix data=dataset method=laplace;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; class code period_count;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; model billing_count=code period_count code*period_count / dist=NB;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; random period_count / type=ar(1) subject=code;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the levels of CODE in aisley’s dataset are the complete set of codes of interest, then the CODE-as-fixed-effect-factor model seems like the better choice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Susan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 23:36:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-Subject-Specific-Estimates/m-p/197653#M10614</guid>
      <dc:creator>sld</dc:creator>
      <dc:date>2015-07-14T23:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: GLIMMIX Subject Specific Estimates</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-Subject-Specific-Estimates/m-p/197654#M10615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's a link to a comment by Bill Venables about dist=normal link=log that might be of interest&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://stat.ethz.ch/pipermail/r-help/2004-December/062683.html" title="https://stat.ethz.ch/pipermail/r-help/2004-December/062683.html"&gt;https://stat.ethz.ch/pipermail/r-help/2004-December/062683.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Susan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 23:38:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-Subject-Specific-Estimates/m-p/197654#M10615</guid>
      <dc:creator>sld</dc:creator>
      <dc:date>2015-07-14T23:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: GLIMMIX Subject Specific Estimates</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-Subject-Specific-Estimates/m-p/197655#M10616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, now that I have a better idea about your data/question and some models are converging, let's see if I can help (or muddy the waters even more)...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"I am trying to analyze a dataset where each subject has 12 repeated measures (quarterly over 3 years). I want to extract subject specific estimates of the time slope..."&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;** This statement implies that you want subject-specific solutions, not population-averaged as estimated in GEE, so I would stick with Glimmix (though I agree with Steve's implied point that there are a lot of ways to tackle the question you seem to be asking). **&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"to evaluate if the subjects are changing significantly over time." &lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;** More on this later.&amp;nbsp; &lt;EM&gt; &lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"The code I currently have consistently suggests that each subject is demonstrating a highly significant increase over time. This seems unlikely but I'm not sure how to adjust my syntax to run a more accurate model. Does anyone know how/why this model would find the slope coefficient for time significant for all cases?"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;** Why is this unlikely? &lt;/P&gt;&lt;P&gt;** Just to be sure, you are interpreting the "fixed" effect slope coefficient and not the random coefficient, right?&amp;nbsp; &lt;/P&gt;&lt;P&gt;** Is the linear growth trajectory adequate for these data (I'd be surprised if so with 12 time points and assuming temporal variability in billing cycles, subject payments, and new procedures, but I have no idea). Does inspection of subject-specific XY plots of billing "counts" by quarterly billing period confirm a consistent linear increase for most/all subjects?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"A quick description of the study: We are creating a trending report which should flag procedure codes (subjects) that are showing a significant increase in the number of times it was billed over the time period being analyzed (3 years, by quarter). The outcome variable is being treated as a count (bounded at 0 but not necessarily whole numbers). ... To answer some of the above questions- I am getting some fractional values because I am attempting to analyze medical billing data. For some procedures (like those involving anesthesia), billing is done in 15 minute increments (thus, we could end up with counts at 1.5 as a hour and a half of anesthetic administration). This is not generally the case, however. If I additionally log transformed these counts, would a lognormal distribution be better fit?"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;** Does it make sense to code your billing counts consistently across subjects and procedures? If it is possible and makes sense to do so, I would. In other words, if it is generally the case that one procedure = 1 bill count, then an anesthetic administration billed as 1.5 hrs (or 6 15-min increments) should also be coded as = 1 bill count. It is important that the Y values mean the same thing (as much as possible) in all cases. &lt;/P&gt;&lt;P&gt;** I personally recommend against indiscriminately logging the Y values to attain a more normal distribution of residuals or a better model fit. Doing so typically has substantial implications for interpretation of results that are too easily overlooked. In this case, I would try to recode to create a count (or at least a discrete whole-integer) variable and then apply the appropriate modeling strategy while specifically diagnosing and addressing sources of heteroskedasticity or other residual/fit issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;In regards to the concerns of zero inflation-This was absolutely a concern initially. However, I have filtered for a complete case analysis where there is observed data in all the time points.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;** Does this mean subjects' observations are only retained if they have an observation &amp;gt; 0? In other words, a subject that received one bill in time 2, 3, and 4 but no bills in 1, 5, 6, 7+ periods would only have three observations? Or, is a subject coded as having a 'zero' observation if they did not receive a bill in a particular billing period (e.g., in the example, the subject billing variable would be coded 011100000000 across the 12 observations)? The answer to this question is essential for interpreting your models. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming you want "&lt;EM&gt;to evaluate if &lt;/EM&gt;[and how]&lt;EM&gt; the subjects are changing significantly over time" &lt;/EM&gt;overall then I would personally start by estimating the following model (before estimating subject-specific fixed effects models): &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc glimmix data=dataset ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; class code;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; model billing_count = period_count / dist=nb;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; random intercept period_count / subject=code type=un;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;** Does this model converge? If not, try the simpler "type=vc" (Like Susan, I am skeptical that an autoregressive structure is appropriate for these data, but I could certainly be wrong). &lt;/P&gt;&lt;P&gt;** Does this model fit better than alternatives that specify "dist=normal" (or "dist=p")? (Compare -2LL and BIC across models) &lt;/P&gt;&lt;P&gt;** Does this model fit better than alternatives that specify non-linear growth parameters? (Compare significance of fixed effects coefficients for quadratic/cubic terms and IC statistics). For example, compare the following: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc glimmix data=dataset ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; class code;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; model billing_count = period_count period_count*period_count/ dist=nb;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; random intercept period_count / subject=code type=vc;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;** Also try including the quadratic term (period_count*period_count) in the random statement and check significance of coefficient. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's enough for now. I need some sleep... &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://communities.sas.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;P&gt;Jon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 07:00:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLIMMIX-Subject-Specific-Estimates/m-p/197655#M10616</guid>
      <dc:creator>jrbrauer</dc:creator>
      <dc:date>2015-07-15T07:00:42Z</dc:date>
    </item>
  </channel>
</rss>

