<?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: CorrB using Proc Genmod in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/CorrB-using-Proc-Genmod/m-p/393100#M20534</link>
    <description>Thank you!</description>
    <pubDate>Tue, 05 Sep 2017 06:32:45 GMT</pubDate>
    <dc:creator>egaleano</dc:creator>
    <dc:date>2017-09-05T06:32:45Z</dc:date>
    <item>
      <title>CorrB using Proc Genmod</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/CorrB-using-Proc-Genmod/m-p/393010#M20532</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I would like parameters' names (or labels) to be shown in the Covariance (CovB)&amp;nbsp;and Correlation (CorrB)&amp;nbsp;matrix when I use the GENMOD procedure. In effect&amp;nbsp;I only see prm1, prm2, etc... and if I use several covariates in the model&amp;nbsp;I struggle to find out which parameter is correlated to another parameter.&lt;/P&gt;&lt;P&gt;Does anyone know how to achieve it?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EG&lt;/P&gt;</description>
      <pubDate>Mon, 04 Sep 2017 15:14:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/CorrB-using-Proc-Genmod/m-p/393010#M20532</guid>
      <dc:creator>egaleano</dc:creator>
      <dc:date>2017-09-04T15:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: CorrB using Proc Genmod</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/CorrB-using-Proc-Genmod/m-p/393093#M20533</link>
      <description>&lt;P&gt;Some post processing of the table data can yield a more informative correlation matrix. Starting with the logistic regression from the doc:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data drug;
   input drug$ x r n @@;
   datalines;
A  .1   1  10   A  .23  2  12   A  .67  1   9
B  .2   3  13   B  .3   4  15   B  .45  5  16   B  .78  5  13
C  .04  0  10   C  .15  0  11   C  .56  1  12   C  .7   2  12
D  .34  5  10   D  .6   5   9   D  .7   8  10
E  .2  12  20   E  .34 15  20   E  .56 13  15   E  .8  17  20
;

proc genmod data=drug;
   class drug;
   model r/n = x drug / dist = bin
                        link = logit
                        lrci corrb;
ods output parmInfo=pi corrb=cb;
run;

data pi2;
set pi;
length label $32;
label = catx("=", Effect, drug);
run;

proc sql;
select catx("=", parameter, quote(trim(label)))
into :labels separated by " "
from pi2;
quit;

data cb2;
set cb(rename=rowname=parameter); set pi2; by parameter notsorted;
label &amp;amp;labels.;
run;

title "Correlation between parameter estimates";
proc print data=cb2 label noobs; var label prm: ; run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;                      Correlation between parameter estimates

   label        Intercept          x     drug=A     drug=B     drug=C     drug=D

   Intercept      1.0000     -0.7550    -0.3098    -0.3787    -0.1956    -0.2279
   x             -0.7550      1.0000     0.0181    -0.0880    -0.1000    -0.1920
   drug=A        -0.3098      0.0181     1.0000     0.3050     0.1849     0.2533
   drug=B        -0.3787     -0.0880     0.3050     1.0000     0.2895     0.4030
   drug=C        -0.1956     -0.1000     0.1849     0.2895     1.0000     0.2543
   drug=D        -0.2279     -0.1920     0.2533     0.4030     0.2543     1.0000
&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Sep 2017 04:32:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/CorrB-using-Proc-Genmod/m-p/393093#M20533</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2017-09-05T04:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: CorrB using Proc Genmod</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/CorrB-using-Proc-Genmod/m-p/393100#M20534</link>
      <description>Thank you!</description>
      <pubDate>Tue, 05 Sep 2017 06:32:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/CorrB-using-Proc-Genmod/m-p/393100#M20534</guid>
      <dc:creator>egaleano</dc:creator>
      <dc:date>2017-09-05T06:32:45Z</dc:date>
    </item>
  </channel>
</rss>

