<?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: Robust Sandwich Estimate from PROC Logistic in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Robust-Sandwich-Estimate-from-PROC-Logistic/m-p/121687#M6393</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc glimmix data=data empirical=classical; /* For a classical sandwich estimation */&lt;/P&gt;&lt;P&gt;class x5(param=ref ref=first) x7;&lt;/P&gt;&lt;P&gt;model y(event='1')=x1 x2 x3 x4 x5 x6/dist=binomial solution;&lt;/P&gt;&lt;P&gt;random intercept/subject=x7; /* To mimic the strata */&lt;/P&gt;&lt;P&gt;where (x9 = 1 or x10 = 1) &amp;amp; x5 ne '' &amp;amp; x7 ne '' &amp;amp; y_denom = 1 &amp;amp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; x8 in ('name1','name2','name3','name4','name5');&lt;/P&gt;&lt;P&gt;&amp;nbsp; by x8;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code is untested, so there will probably be some bugs along the way, but GLIMMIX is the only way I can think of to get sandwich estimators for generalized linear models.&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, 27 Feb 2013 12:32:09 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2013-02-27T12:32:09Z</dc:date>
    <item>
      <title>Robust Sandwich Estimate from PROC Logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Robust-Sandwich-Estimate-from-PROC-Logistic/m-p/121686#M6392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following pseduo-code in which I need to calculate robust sandwich standard error estimates.&amp;nbsp; I do not believe you can perform this using PROC LOGISTIC, correct?&amp;nbsp; If not, which PROC would you recommend?&amp;nbsp; Which options to specify to substitute for the strata statement?&amp;nbsp; Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc logistic data = data;&lt;/P&gt;&lt;P&gt;&amp;nbsp; class x5 /param = ref ref = first;&lt;/P&gt;&lt;P&gt;&amp;nbsp; model y (event = '1')=&amp;nbsp; x1 x2 x3 x4 x5 x6;&lt;/P&gt;&lt;P&gt;&amp;nbsp; strata x7;&lt;/P&gt;&lt;P&gt;&amp;nbsp; where (x9 = 1 or x10 = 1) &amp;amp; x5 ne '' &amp;amp; x7 ne '' &amp;amp; y_denom = 1 &amp;amp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; x8 in ('name1','name2','name3','name4','name5');&lt;/P&gt;&lt;P&gt;&amp;nbsp; by x8;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2013 13:38:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Robust-Sandwich-Estimate-from-PROC-Logistic/m-p/121686#M6392</guid>
      <dc:creator>jdserbon</dc:creator>
      <dc:date>2013-02-26T13:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: Robust Sandwich Estimate from PROC Logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Robust-Sandwich-Estimate-from-PROC-Logistic/m-p/121687#M6393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc glimmix data=data empirical=classical; /* For a classical sandwich estimation */&lt;/P&gt;&lt;P&gt;class x5(param=ref ref=first) x7;&lt;/P&gt;&lt;P&gt;model y(event='1')=x1 x2 x3 x4 x5 x6/dist=binomial solution;&lt;/P&gt;&lt;P&gt;random intercept/subject=x7; /* To mimic the strata */&lt;/P&gt;&lt;P&gt;where (x9 = 1 or x10 = 1) &amp;amp; x5 ne '' &amp;amp; x7 ne '' &amp;amp; y_denom = 1 &amp;amp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; x8 in ('name1','name2','name3','name4','name5');&lt;/P&gt;&lt;P&gt;&amp;nbsp; by x8;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code is untested, so there will probably be some bugs along the way, but GLIMMIX is the only way I can think of to get sandwich estimators for generalized linear models.&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, 27 Feb 2013 12:32:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Robust-Sandwich-Estimate-from-PROC-Logistic/m-p/121687#M6393</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2013-02-27T12:32:09Z</dc:date>
    </item>
  </channel>
</rss>

