<?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 Caterpillar plots from random-effects proc glimmix output in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Caterpillar-plots-from-random-effects-proc-glimmix-output/m-p/613382#M29646</link>
    <description>&lt;P&gt;Hi, I would appreciate a help with creating a caterpillar plot from the generalized linear mixed (binomial distribution) models with random intercepts output. I came across with an article on creating a caterpillar plot from proc mcmc output using the cater macro:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #333333; font-family: monospace; font-size: 110%; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.25em; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;ods graphics on;&lt;BR /&gt;%CATER(data=postout, var=delta: );&lt;BR /&gt;ods graphics off;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #333333; font-family: monospace; font-size: 110%; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.25em; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;I want to do a similar plot but with the proc glimmix output (SolutionR=random effect estimates&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #333333; font-family: monospace; font-size: 110%; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.25em; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;and plotting the ‘wiskers’ as +/- 1.96 x the standard errors).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 21 Dec 2019 09:03:52 GMT</pubDate>
    <dc:creator>jeff_b</dc:creator>
    <dc:date>2019-12-21T09:03:52Z</dc:date>
    <item>
      <title>Caterpillar plots from random-effects proc glimmix output</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Caterpillar-plots-from-random-effects-proc-glimmix-output/m-p/613382#M29646</link>
      <description>&lt;P&gt;Hi, I would appreciate a help with creating a caterpillar plot from the generalized linear mixed (binomial distribution) models with random intercepts output. I came across with an article on creating a caterpillar plot from proc mcmc output using the cater macro:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #333333; font-family: monospace; font-size: 110%; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.25em; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;ods graphics on;&lt;BR /&gt;%CATER(data=postout, var=delta: );&lt;BR /&gt;ods graphics off;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #333333; font-family: monospace; font-size: 110%; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.25em; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;I want to do a similar plot but with the proc glimmix output (SolutionR=random effect estimates&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #333333; font-family: monospace; font-size: 110%; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.25em; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;and plotting the ‘wiskers’ as +/- 1.96 x the standard errors).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Dec 2019 09:03:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Caterpillar-plots-from-random-effects-proc-glimmix-output/m-p/613382#M29646</guid>
      <dc:creator>jeff_b</dc:creator>
      <dc:date>2019-12-21T09:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: Caterpillar plots from random-effects proc glimmix output</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Caterpillar-plots-from-random-effects-proc-glimmix-output/m-p/613432#M29647</link>
      <description>&lt;P&gt;If you post your code, we can be more helpful. What statistic are you trying the plot? The parameter estimates and their standard errors?&lt;/P&gt;
&lt;P&gt;If so, see &lt;A href="https://blogs.sas.com/content/iml/2015/08/05/coefficient-plots.html" target="_self"&gt;this article about regression coefficient plots.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As shown in the article, the basic idea is to output the information you want to plot (estimates and stderrs) to a SAS data set. then use a DATA step to create two variables: Lower=Estimate-1.96*StdErr and&amp;nbsp;Upper=Estimate-+.96*StdErr.&lt;/P&gt;
&lt;P&gt;Use the SCATTER statement in PROC SGPLOT and the XERRRORLOW= and XERRORUPPER= options to display the 1.96*StdErr intervals.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Other articles that cerate similar plots are&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2016/09/08/coverage-probability-confidence-intervals.html" target="_self"&gt;"Coverage probability of confidence intervals"&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;and&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2015/07/29/or-plots-log-scale.html" target="_self"&gt;"Odds ratio plots"&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Dec 2019 12:11:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Caterpillar-plots-from-random-effects-proc-glimmix-output/m-p/613432#M29647</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-12-22T12:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: Caterpillar plots from random-effects proc glimmix output</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Caterpillar-plots-from-random-effects-proc-glimmix-output/m-p/614021#M29666</link>
      <description>&lt;P&gt;Thank you Rick! Your response is extremely helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;FONT&gt;Posting my code below:&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;data temp;&lt;BR /&gt;set SolutionR;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;&amp;nbsp;Lower=Estimate-1.96*StdErrPred;&lt;BR /&gt;&amp;nbsp;Upper=Estimate+1.96*StdErrPred;&lt;BR /&gt;run;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;proc sort data=&lt;FONT&gt;temp&lt;/FONT&gt;;&amp;nbsp; by descending Estimate;&amp;nbsp; run;&lt;BR /&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;proc sgplot data=&lt;FONT&gt;temp&lt;/FONT&gt; noautolegend;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; scatter y=Estimate x=Subject&amp;nbsp; / yerrorlower=Lower yerrorupper=Upper&amp;nbsp; markerattrs=(symbol=diamondfilled);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; refline 0 / axis=y;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; xaxis grid;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; yaxis grid display=(nolabel) discreteorder=data reverse;&lt;BR /&gt;run;&lt;/FONT&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 27 Dec 2019 06:29:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Caterpillar-plots-from-random-effects-proc-glimmix-output/m-p/614021#M29666</guid>
      <dc:creator>jeff_b</dc:creator>
      <dc:date>2019-12-27T06:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: Caterpillar plots from random-effects proc glimmix output</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Caterpillar-plots-from-random-effects-proc-glimmix-output/m-p/614369#M29668</link>
      <description>&lt;P&gt;Great. Glad you solved your problem. If you have other questions, please post them. Otherwise, please mark the thread as solved.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2019 11:18:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Caterpillar-plots-from-random-effects-proc-glimmix-output/m-p/614369#M29668</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-12-30T11:18:18Z</dc:date>
    </item>
  </channel>
</rss>

