<?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: PROC GEE LSMEANS reference group in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GEE-LSMEANS-reference-group/m-p/705792#M34185</link>
    <description>&lt;P&gt;Theoretically, yes! The weird/interesting thing thing is that it does show was I want in an unadjusted model, but as soon as I add other covariates, it doesn't.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 14 Dec 2020 17:55:04 GMT</pubDate>
    <dc:creator>lauragrau</dc:creator>
    <dc:date>2020-12-14T17:55:04Z</dc:date>
    <item>
      <title>PROC GEE LSMEANS reference group</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GEE-LSMEANS-reference-group/m-p/705741#M34170</link>
      <description>&lt;P&gt;Hi, I'm running the following model:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc gee data=data descending;&lt;BR /&gt;class id category(ref='Non-user') fiscal_yr ;&lt;BR /&gt;model outcome(event='1')=category fiscal_yr /dist=bin link=logit type3;&lt;BR /&gt;repeated sub=id/within=fiscal_yr;&lt;BR /&gt;lsmeans category/ilink oddsratio diff cl;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Category is a numeric variable with a format:&lt;/P&gt;&lt;P&gt;0= 'Non-user'&lt;/P&gt;&lt;P&gt;1='Varied user'&lt;/P&gt;&lt;P&gt;2='User'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have very specific odds ratios I want to get from the LSMEANS. I want:&lt;/P&gt;&lt;P&gt;Varied vs non-user&lt;/P&gt;&lt;P&gt;User vs non-user&lt;/P&gt;&lt;P&gt;User vs varied&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried by changing the reference group in the class statement, which changes the reference in my parameter estimates statement, but not in my "Differences of category Least Squares Means".&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2020 15:49:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GEE-LSMEANS-reference-group/m-p/705741#M34170</guid>
      <dc:creator>lauragrau</dc:creator>
      <dc:date>2020-12-14T15:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GEE LSMEANS reference group</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GEE-LSMEANS-reference-group/m-p/705759#M34179</link>
      <description>&lt;P&gt;Using REF= in the CLASS statement will set the reference level in both the parameter estimates and the lsmeans difference tables. For example, the statements for a variable, A, with levels 0, 1, and 2&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;class a(desc ref='0');&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;lsmeans a / diff;&lt;/P&gt;
&lt;P&gt;will give lsmeans differences 1 vs 0 , 2 vs 0, and 2 vs 1.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2020 16:28:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GEE-LSMEANS-reference-group/m-p/705759#M34179</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2020-12-14T16:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GEE LSMEANS reference group</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GEE-LSMEANS-reference-group/m-p/705782#M34183</link>
      <description>&lt;P&gt;Okay! That worked for the logistic. Do you know how to get that to work with a multinomial, same predictor?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The outcome is 0,1,2. I want the reference group to be 1.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I want the LSMEANS differences table to have the same odds ratios described in the original question, with the outcome being 0 v 1 and 2 v 1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC GEE DATA=test DESCENDING ;&lt;BR /&gt;CLASS id testcat(desc ref='0') fiscal_yr;&lt;BR /&gt;MODEL ldl_lt100(REF='1')=testcat fiscal_yr /DIST=MULTINOMIAL LINK=GLOGIT TYPE3;&lt;BR /&gt;REPEATED SUB=id/WITHIN=fiscal_yr;&lt;BR /&gt;LSMEANS testcat/ILINK ODDSRATIO DIFF CL;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently, it is showing:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;ldl_lt100&lt;/TD&gt;&lt;TD&gt;testcat&lt;/TD&gt;&lt;TD&gt;_testcat&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&g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ities.sas.com/t5/Statistical-Procedures/PROC-GEE-LSMEANS-reference-group/m-p/705782#M34183</guid>
      <dc:creator>lauragrau</dc:creator>
      <dc:date>2020-12-14T17:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GEE LSMEANS reference group</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GEE-LSMEANS-reference-group/m-p/705789#M34184</link>
      <description>&lt;P&gt;The code you show (with response variable option REF='1') gives what you want in SAS release SAS 9.4 TS1M6.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2020 17:49:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GEE-LSMEANS-reference-group/m-p/705789#M34184</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2020-12-14T17:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GEE LSMEANS reference group</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GEE-LSMEANS-reference-group/m-p/705792#M34185</link>
      <description>&lt;P&gt;Theoretically, yes! The weird/interesting thing thing is that it does show was I want in an unadjusted model, but as soon as I add other covariates, it doesn't.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2020 17:55:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GEE-LSMEANS-reference-group/m-p/705792#M34185</guid>
      <dc:creator>lauragrau</dc:creator>
      <dc:date>2020-12-14T17:55:04Z</dc:date>
    </item>
  </channel>
</rss>

