<?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: SAS macro to generate randomized quantile residuals from PROC GLIMMIX? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-macro-to-generate-randomized-quantile-residuals-from-PROC/m-p/989111#M49473</link>
    <description>&lt;P&gt;I'm not aware of any macro for producing "randomized quantile residuals" &lt;SPAN&gt;from fitted GLMs (GENMOD procedure) or GLMMs (GLIMMIX procedure).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It shouldn't be difficult to write such a macro ... and you can have a quick-start by asking&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;EM&gt;Claude Code CLI&lt;/EM&gt; or&lt;/LI&gt;
&lt;LI&gt;&lt;EM&gt;Open-AI Codex&lt;/EM&gt; or&lt;/LI&gt;
&lt;LI&gt;&lt;EM&gt;GitHub Copilot&lt;/EM&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;to&amp;nbsp; come up with a first version.&lt;BR /&gt;&lt;BR /&gt;Also, you can submit R-code in your SAS program.&lt;BR /&gt;SAS/IML User's Guide&lt;BR /&gt;Calling Functions in the R Language&lt;BR /&gt;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/imlug/imlug_r_toc.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/imlug/imlug_r_toc.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR, Koen&lt;/P&gt;</description>
    <pubDate>Tue, 02 Jun 2026 21:44:36 GMT</pubDate>
    <dc:creator>sbxkoenk</dc:creator>
    <dc:date>2026-06-02T21:44:36Z</dc:date>
    <item>
      <title>SAS macro to generate randomized quantile residuals from PROC GLIMMIX?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-macro-to-generate-randomized-quantile-residuals-from-PROC/m-p/989083#M49472</link>
      <description>&lt;P&gt;I am a big user of the R package DHARMa (&lt;A href="https://cran.r-project.org/web/packages/DHARMa/vignettes/DHARMa.html" target="_blank"&gt;https://cran.r-project.org/web/packages/DHARMa/vignettes/DHARMa.html&lt;/A&gt;) which produces scaled quantile residuals from fitted GLMMs and does a variety of diagnostic tests on them such as uniformity, overdispersion, and autocorrelation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know that it is possible to write a macro in SAS to generate quantile residuals via simulation from a fitted GLIMMIX model and run the diagnostic tests. But I was curious if anyone in the community already has a macro that can do that, that they are willing to share.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help!&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2026 16:17:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-macro-to-generate-randomized-quantile-residuals-from-PROC/m-p/989083#M49472</guid>
      <dc:creator>quentinread</dc:creator>
      <dc:date>2026-06-02T16:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: SAS macro to generate randomized quantile residuals from PROC GLIMMIX?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-macro-to-generate-randomized-quantile-residuals-from-PROC/m-p/989111#M49473</link>
      <description>&lt;P&gt;I'm not aware of any macro for producing "randomized quantile residuals" &lt;SPAN&gt;from fitted GLMs (GENMOD procedure) or GLMMs (GLIMMIX procedure).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It shouldn't be difficult to write such a macro ... and you can have a quick-start by asking&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;EM&gt;Claude Code CLI&lt;/EM&gt; or&lt;/LI&gt;
&lt;LI&gt;&lt;EM&gt;Open-AI Codex&lt;/EM&gt; or&lt;/LI&gt;
&lt;LI&gt;&lt;EM&gt;GitHub Copilot&lt;/EM&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;to&amp;nbsp; come up with a first version.&lt;BR /&gt;&lt;BR /&gt;Also, you can submit R-code in your SAS program.&lt;BR /&gt;SAS/IML User's Guide&lt;BR /&gt;Calling Functions in the R Language&lt;BR /&gt;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/imlug/imlug_r_toc.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/imlug/imlug_r_toc.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR, Koen&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2026 21:44:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-macro-to-generate-randomized-quantile-residuals-from-PROC/m-p/989111#M49473</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2026-06-02T21:44:36Z</dc:date>
    </item>
  </channel>
</rss>

