<?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 LSMeans at reference level of categorical predictor in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/LSMeans-at-reference-level-of-categorical-predictor/m-p/391297#M20413</link>
    <description>&lt;P&gt;So I'm using GLIMMIX but I'm pretty sure this question can be applicable to other procedures that utilize LSMeans.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a model set up like so:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Class Druggroup Period Units;
Cases = Druggroup*Period + Druggroup*Units + ln_respondents;
Lsmeans Druggroup*Period / pdiff cl at ln_respondents = 0;&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;I want the LSMeans for the Druggroup*Period combinations AT (ln_respondents = 0) AND (Units = Reference category of Units).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using AT ln_respondents = 0 is easy to do. However I cannot find out the way to have the LSMeans given for the REFERENCE category of Units. By default it looks like it gives the mean ACROSS the different categories.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know this is possible to do with an ESTIMATE statement, but I am trying to make this code flexible (running many different models through it) so I was hoping to utilize LSMeans.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, is it possible to get this info from LSMeans or am I barking up the wrong tree?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Mon, 28 Aug 2017 18:35:11 GMT</pubDate>
    <dc:creator>ScottEDK</dc:creator>
    <dc:date>2017-08-28T18:35:11Z</dc:date>
    <item>
      <title>LSMeans at reference level of categorical predictor</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/LSMeans-at-reference-level-of-categorical-predictor/m-p/391297#M20413</link>
      <description>&lt;P&gt;So I'm using GLIMMIX but I'm pretty sure this question can be applicable to other procedures that utilize LSMeans.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a model set up like so:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Class Druggroup Period Units;
Cases = Druggroup*Period + Druggroup*Units + ln_respondents;
Lsmeans Druggroup*Period / pdiff cl at ln_respondents = 0;&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;I want the LSMeans for the Druggroup*Period combinations AT (ln_respondents = 0) AND (Units = Reference category of Units).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using AT ln_respondents = 0 is easy to do. However I cannot find out the way to have the LSMeans given for the REFERENCE category of Units. By default it looks like it gives the mean ACROSS the different categories.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know this is possible to do with an ESTIMATE statement, but I am trying to make this code flexible (running many different models through it) so I was hoping to utilize LSMeans.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, is it possible to get this info from LSMeans or am I barking up the wrong tree?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2017 18:35:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/LSMeans-at-reference-level-of-categorical-predictor/m-p/391297#M20413</guid>
      <dc:creator>ScottEDK</dc:creator>
      <dc:date>2017-08-28T18:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: LSMeans at reference level of categorical predictor</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/LSMeans-at-reference-level-of-categorical-predictor/m-p/391986#M20453</link>
      <description>&lt;P&gt;As you describe it, you essentially want to get predicted means for several specified settings of all of your predictors. Save your fitted model by adding a STORE statement in GLIMMIX. You could then simply create a data set containing an observation for each of the settings for which you want estimated means, and then use PROC PLM to read the stored model information and specify a SCORE statement to obtain the predicted values for the data set you created.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 18:57:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/LSMeans-at-reference-level-of-categorical-predictor/m-p/391986#M20453</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2017-08-30T18:57:50Z</dc:date>
    </item>
  </channel>
</rss>

