<?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 Obtaining correct parameter estimates for loglinear mixed model with proc glimmix in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Obtaining-correct-parameter-estimates-for-loglinear-mixed-model/m-p/452873#M23676</link>
    <description>&lt;P&gt;I'm running a loglinear multiple regression model on episode level hospital claims data with a random effect for the subject IDs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My regression formula has the form:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;E[ln(Length of Stay)] = Beta* X_matrix + Gamma*(Subject ID)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glimmix data=sasdata.RPT_CTBH15041_CTPAR_CY2015_2017;
  class membno provnam grpnum sexcod racecd svccls;
  model total_los = provnam grpnum memage sexcod racecd svccls / cl e solution dist=lognormal;
  random int / subject=membno;
  lsmeans provnam / e cl ilink diff=anom;
  ods output ParameterEstimates=ParmEst;
  ods output LSMeans=MeanDiff;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Question: Since I specified a loglinear model, not a GLM, does the "ilink" option in the lsmeans statement return the correct parameter estimates and standard errors of the mean LOS (not the median LOS) for the final model?&lt;/P&gt;</description>
    <pubDate>Tue, 10 Apr 2018 16:00:48 GMT</pubDate>
    <dc:creator>RobertF</dc:creator>
    <dc:date>2018-04-10T16:00:48Z</dc:date>
    <item>
      <title>Obtaining correct parameter estimates for loglinear mixed model with proc glimmix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Obtaining-correct-parameter-estimates-for-loglinear-mixed-model/m-p/452873#M23676</link>
      <description>&lt;P&gt;I'm running a loglinear multiple regression model on episode level hospital claims data with a random effect for the subject IDs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My regression formula has the form:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;E[ln(Length of Stay)] = Beta* X_matrix + Gamma*(Subject ID)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glimmix data=sasdata.RPT_CTBH15041_CTPAR_CY2015_2017;
  class membno provnam grpnum sexcod racecd svccls;
  model total_los = provnam grpnum memage sexcod racecd svccls / cl e solution dist=lognormal;
  random int / subject=membno;
  lsmeans provnam / e cl ilink diff=anom;
  ods output ParameterEstimates=ParmEst;
  ods output LSMeans=MeanDiff;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Question: Since I specified a loglinear model, not a GLM, does the "ilink" option in the lsmeans statement return the correct parameter estimates and standard errors of the mean LOS (not the median LOS) for the final model?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 16:00:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Obtaining-correct-parameter-estimates-for-loglinear-mixed-model/m-p/452873#M23676</guid>
      <dc:creator>RobertF</dc:creator>
      <dc:date>2018-04-10T16:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: Obtaining correct parameter estimates for loglinear mixed model with proc glimmix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Obtaining-correct-parameter-estimates-for-loglinear-mixed-model/m-p/452932#M23687</link>
      <description>&lt;P&gt;&lt;SPAN&gt;When you choose DIST=LOGNORMAL, the GLIMMIX procedure models the logarithm of the response variable as a normal random variable,&amp;nbsp;&lt;A href="http://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_glimmix_syntax17.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en#statug.glimmix.gmxmoddist" target="_self"&gt;The GLIMMIX Procedure | Model options&lt;/A&gt;&amp;nbsp; Because the default link is the identity link, the ILINK option has no effect: the inverse-linked estimates are on the lognormal scale. You have to do the inverse-transformation yourself.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 19:31:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Obtaining-correct-parameter-estimates-for-loglinear-mixed-model/m-p/452932#M23687</guid>
      <dc:creator>sld</dc:creator>
      <dc:date>2018-04-10T19:31:41Z</dc:date>
    </item>
  </channel>
</rss>

