<?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 Proc Genmod GEE model lsmeans difference and its CI on the proportion scale in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Genmod-GEE-model-lsmeans-difference-and-its-CI-on-the/m-p/150494#M7925</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;I am fitting a GEE model using proc genmod, the syntax is below. Dependent variable 'agree' has 2 levels (Yes/No). Independent variable 'method' has 2 levels as well (A vs. B). Variable caseid has 200 levels for the 200 cases involved in the study. There are repeated measurements on each case.&amp;nbsp; Each case was read by 4 investigators, we are only interested in the population average estimates, hence the GEE model. We are not interested in fitting the investigators as a random factor. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;proc genmod data=pop descending;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; class caseid method;&lt;/P&gt;&lt;P&gt;&amp;nbsp; model agree=method /dist=bin link=logit type3;&lt;/P&gt;&lt;P&gt;&amp;nbsp; repeated subject=caseid/corr=cs;&lt;/P&gt;&lt;P&gt;&amp;nbsp; lsmeans method/diff cl ilink;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; background-color: #ffffff;"&gt;I need to have the difference in proportion between the 2 methods (A - B) in the probability scale, not the logit scale. &lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; background-color: #ffffff;"&gt;This is not available, per SAS doc&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;A&gt;ILINK&lt;/A&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Computes and displays estimates and standard errors of LS-means &lt;STRONG style="text-decoration: underline;"&gt;(but not difference&lt;/STRONG&gt;s) on the inverse linked scale &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; background-color: #ffffff;"&gt;The difference and its CI are all in the logit scale, ilink is not applicable for the difference (log(p1/(1-p1)) - log(p2/1-p2)), of course. &lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; background-color: #ffffff;"&gt;Does anyone know a way (maybe a SAS macro someone implemented) that can calculate the lsmeans difference and its CI in the probability scale (the inverse linked scale)? &lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; background-color: #ffffff;"&gt;I asked SAS technical support this question and was pointed to a support note which recommends 2 methods (either use the link=identity in proc genmend or use proc nlmixed). None of those 2 solutions is satisfactory.&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; background-color: #ffffff;"&gt;Thanks&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; background-color: #ffffff;"&gt;Isaac &lt;/P&gt;&lt;DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Jun 2014 19:39:05 GMT</pubDate>
    <dc:creator>IsaacBai</dc:creator>
    <dc:date>2014-06-20T19:39:05Z</dc:date>
    <item>
      <title>Proc Genmod GEE model lsmeans difference and its CI on the proportion scale</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Genmod-GEE-model-lsmeans-difference-and-its-CI-on-the/m-p/150494#M7925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;I am fitting a GEE model using proc genmod, the syntax is below. Dependent variable 'agree' has 2 levels (Yes/No). Independent variable 'method' has 2 levels as well (A vs. B). Variable caseid has 200 levels for the 200 cases involved in the study. There are repeated measurements on each case.&amp;nbsp; Each case was read by 4 investigators, we are only interested in the population average estimates, hence the GEE model. We are not interested in fitting the investigators as a random factor. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;proc genmod data=pop descending;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; class caseid method;&lt;/P&gt;&lt;P&gt;&amp;nbsp; model agree=method /dist=bin link=logit type3;&lt;/P&gt;&lt;P&gt;&amp;nbsp; repeated subject=caseid/corr=cs;&lt;/P&gt;&lt;P&gt;&amp;nbsp; lsmeans method/diff cl ilink;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; background-color: #ffffff;"&gt;I need to have the difference in proportion between the 2 methods (A - B) in the probability scale, not the logit scale. &lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; background-color: #ffffff;"&gt;This is not available, per SAS doc&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;A&gt;ILINK&lt;/A&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Computes and displays estimates and standard errors of LS-means &lt;STRONG style="text-decoration: underline;"&gt;(but not difference&lt;/STRONG&gt;s) on the inverse linked scale &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; background-color: #ffffff;"&gt;The difference and its CI are all in the logit scale, ilink is not applicable for the difference (log(p1/(1-p1)) - log(p2/1-p2)), of course. &lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; background-color: #ffffff;"&gt;Does anyone know a way (maybe a SAS macro someone implemented) that can calculate the lsmeans difference and its CI in the probability scale (the inverse linked scale)? &lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; background-color: #ffffff;"&gt;I asked SAS technical support this question and was pointed to a support note which recommends 2 methods (either use the link=identity in proc genmend or use proc nlmixed). None of those 2 solutions is satisfactory.&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; background-color: #ffffff;"&gt;Thanks&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; background-color: #ffffff;"&gt;Isaac &lt;/P&gt;&lt;DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2014 19:39:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Genmod-GEE-model-lsmeans-difference-and-its-CI-on-the/m-p/150494#M7925</guid>
      <dc:creator>IsaacBai</dc:creator>
      <dc:date>2014-06-20T19:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Genmod GEE model lsmeans difference and its CI on the proportion scale</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Genmod-GEE-model-lsmeans-difference-and-its-CI-on-the/m-p/150495#M7926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See this discussion: &lt;A _jive_internal="true" href="https://communities.sas.com/thread/58661"&gt;https://communities.sas.com/thread/58661&lt;/A&gt; for an approximate method for proportions from PROC LOGISTIC.&amp;nbsp; Since you have specified corr=cs, any comparison of different timepoints will have the same covariance, so that should be incorporated when calculating the approximate standard error of the difference..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still, the NLMIXED approach is preferred.&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, 24 Jun 2014 17:17:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Genmod-GEE-model-lsmeans-difference-and-its-CI-on-the/m-p/150495#M7926</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2014-06-24T17:17:52Z</dc:date>
    </item>
  </channel>
</rss>

