<?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 standard errors with Proc Glimmix for Poisson regression in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Robust-standard-errors-with-Proc-Glimmix-for-Poisson-regression/m-p/695113#M33565</link>
    <description>&lt;P&gt;ERROR: Integer overflow on computing amount of memory required.&lt;BR /&gt;ERROR: The SAS System stopped processing this step because of insufficient memory.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It blew up!&lt;/P&gt;</description>
    <pubDate>Thu, 29 Oct 2020 08:15:13 GMT</pubDate>
    <dc:creator>td1345</dc:creator>
    <dc:date>2020-10-29T08:15:13Z</dc:date>
    <item>
      <title>Robust standard errors with Proc Glimmix for Poisson regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Robust-standard-errors-with-Proc-Glimmix-for-Poisson-regression/m-p/694777#M33533</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to accomplish robust standard errors/Empirical variance estimation using sas for my poisson regress for time-to event data.&lt;/P&gt;&lt;P&gt;I have used a time-split macro to model time-dependent covariates for each individual, ID, generationg a dataset with multiple rows per id for each representing each time-stratum for selected time-dependent covariates. Robust errors can easily be obtained by R and STATA. I'm wondering if you can estimate them using SAS proc glimmix or proc genmod (I prefer glimmix to model spline functions for certain covariates, otherwise I can use outdesign= from proc glimmix and then perform analysis using proc genmod) when there are multiple observations per id&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;Sandwich error estimation can be implemented by using the SAS PROC GENMOD procedure (&lt;/SPAN&gt;&lt;A target="_blank"&gt;15&lt;/A&gt;&lt;SPAN&gt;) with the REPEATED statement. It is commonly known that this approach can be used to analyze clustered data, such as repeated measures obtained on the same subject (&lt;/SPAN&gt;&lt;A target="_blank"&gt;16&lt;/A&gt;&lt;SPAN&gt;) or observations arising from cluster randomization trials (&lt;/SPAN&gt;&lt;A target="_blank"&gt;17&lt;/A&gt;&lt;SPAN&gt;). It is less well known that the same statement with PROC GENMOD can also be used to obtain a robust error estimator &lt;STRONG&gt;when only one observation is available from each cluster&lt;/STRONG&gt;. In the present context, this approach can be used to correctly estimate the standard error for the estimated relative risk.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;A href="https://academic.oup.com/aje/article/159/7/702/71883" target="_blank" rel="noopener"&gt;(https://academic.oup.com/aje/article/159/7/702/71883)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the only reference I can find and it states "when only one observation is available from each cluster". Solutions could possibly be to generate a new unqiue id for every row - however, I do not grasp the consequences.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is an example code using input data with variables ID, blah bla, cov1 cov2 event.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glimmx data=input empirical=mbn;
class ID blah bla;
logtime=log(pyrs);
effect aspl=spline(cov1 / NATURALCUBIC BASIS=TPF(NOINT) 
 notmethod=PERCENTILELIST(5 27.5 50 72.5 95));
effect pspl=spline(cov2/ NATURALCUBIC BASIS=TPF(NOINT) knotmethod=PERCENTILELIST(5 27.5 50 72.5 95));
class ID blah someproperty(ref='0');
model events=blah aspl pspl bla / dist=poisson offset=logtime s cl;
random _residual_ / subject=ID;
run;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Note: An R-side variance component is confounded with the profiled variance.&lt;/STRONG&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 28 Oct 2020 09:33:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Robust-standard-errors-with-Proc-Glimmix-for-Poisson-regression/m-p/694777#M33533</guid>
      <dc:creator>td1345</dc:creator>
      <dc:date>2020-10-28T09:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: Robust standard errors with Proc Glimmix for Poisson regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Robust-standard-errors-with-Proc-Glimmix-for-Poisson-regression/m-p/694832#M33536</link>
      <description>&lt;P&gt;Check that note out -that an R side variance component is confounded with the error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So go ahead and identify a row-level ID, which hopefully is applicable across observational IDs. Call it rowblah, I guess. Then try the following (no guarantees that the whole thing won't blow up completely):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glimmx data=input empirical=mbn;
class ID blah bla rowblah;
logtime=log(pyrs);
effect aspl=spline(cov1 / NATURALCUBIC BASIS=TPF(NOINT) 
 notmethod=PERCENTILELIST(5 27.5 50 72.5 95));
effect pspl=spline(cov2/ NATURALCUBIC BASIS=TPF(NOINT) knotmethod=PERCENTILELIST(5 27.5 50 72.5 95));
*class ID blah someproperty(ref='0');
model events=blah aspl pspl bla  rowblah aspl*rowblah pspl*rowblah/ dist=poisson offset=logtime s cl;
random rowblah / residual subject=ID;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I commented out the second CLASS statement, as I think it is redundant, and someproperty does not appear in either the MODEL or RANDOM statement.&amp;nbsp; This approach essentially treats each level of rowblah as a repeated measure on the subject.&amp;nbsp; I don't know if it will work, as convergence issues, starting value issues, and other possible problems may be lurking.&amp;nbsp; However, it strikes me as the most easily implemented method.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2020 12:32:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Robust-standard-errors-with-Proc-Glimmix-for-Poisson-regression/m-p/694832#M33536</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-10-28T12:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: Robust standard errors with Proc Glimmix for Poisson regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Robust-standard-errors-with-Proc-Glimmix-for-Poisson-regression/m-p/694840#M33539</link>
      <description>Thanks for the reply. I wil run analysis in R and SAS and compare the results!</description>
      <pubDate>Wed, 28 Oct 2020 12:57:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Robust-standard-errors-with-Proc-Glimmix-for-Poisson-regression/m-p/694840#M33539</guid>
      <dc:creator>td1345</dc:creator>
      <dc:date>2020-10-28T12:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: Robust standard errors with Proc Glimmix for Poisson regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Robust-standard-errors-with-Proc-Glimmix-for-Poisson-regression/m-p/695113#M33565</link>
      <description>&lt;P&gt;ERROR: Integer overflow on computing amount of memory required.&lt;BR /&gt;ERROR: The SAS System stopped processing this step because of insufficient memory.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It blew up!&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2020 08:15:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Robust-standard-errors-with-Proc-Glimmix-for-Poisson-regression/m-p/695113#M33565</guid>
      <dc:creator>td1345</dc:creator>
      <dc:date>2020-10-29T08:15:13Z</dc:date>
    </item>
  </channel>
</rss>

