<?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: Collinearity Diagnostics Using the Information Matrix. in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Collinearity-Diagnostics-Using-the-Information-Matrix/m-p/274806#M14502</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;BR /&gt;/* I think that the name of the original macro was %COLLIN and I have&lt;BR /&gt;a copy of this macro &lt;STRONG&gt;but it does not work and I get a variety of errors&lt;/STRONG&gt;&lt;BR /&gt;*/&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Post log with options MPRINT turned on with the error messages.&lt;/P&gt;</description>
    <pubDate>Thu, 02 Jun 2016 20:56:09 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2016-06-02T20:56:09Z</dc:date>
    <item>
      <title>Collinearity Diagnostics Using the Information Matrix.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Collinearity-Diagnostics-Using-the-Information-Matrix/m-p/274506#M14474</link>
      <description>&lt;P&gt;&lt;SPAN class="bookTitle"&gt;I am looking for a SAS Macro that provides Collinearity Diagnostics Using the Information Matrix within &lt;STRONG&gt;Binary Logistic Regression.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="bookTitle"&gt;I believe that such a macro was constructed in 2003 and then updated in 2010.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="bookTitle"&gt;However searching via Google, LinkedIn and SAS.Support, I have only been able to find references to the macro &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="bookTitle"&gt;but not the actual code or any documentation on this macro.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="bookTitle"&gt;I would be most grateful if someone could supply me with a well documented and functionally robust version of this SAS macro.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="bookTitle"&gt;Thank You&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2016 22:20:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Collinearity-Diagnostics-Using-the-Information-Matrix/m-p/274506#M14474</guid>
      <dc:creator>JonDickens1607</dc:creator>
      <dc:date>2016-06-01T22:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: Collinearity Diagnostics Using the Information Matrix.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Collinearity-Diagnostics-Using-the-Information-Matrix/m-p/274545#M14480</link>
      <description>&lt;P&gt;What's the name of macro for starters? Do you have any more information, the original author perhaps?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/85559"&gt;@JonDickens1607&lt;/a&gt; wrote:&lt;BR /&gt;&amp;nbsp;
&lt;P&gt;&lt;SPAN class="bookTitle"&gt;I would be most grateful if someone could supply me with a well documented and functionally robust version of this SAS macro.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That may too big of a request, for a forum.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EDIT:&lt;/P&gt;
&lt;P&gt;Is this helpful, it seems to be what you're asking for...within the limits of what you've provided.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/32/471.html" target="_blank"&gt;http://support.sas.com/kb/32/471.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2016 03:58:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Collinearity-Diagnostics-Using-the-Information-Matrix/m-p/274545#M14480</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-06-02T03:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: Collinearity Diagnostics Using the Information Matrix.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Collinearity-Diagnostics-Using-the-Information-Matrix/m-p/274572#M14483</link>
      <description>Author's_Surnames IN ( 'Zack' , 'Singleton' , 'Wall' , 'Delaney' ) ;&lt;BR /&gt;&lt;BR /&gt;Title 'Collinearity Diagnostics Using the Information Matrix.' ;&lt;BR /&gt;&lt;BR /&gt;/* The Collinearity Diagnostic Problem is partially resolved when using&lt;BR /&gt;PROC REG and the Model Options: VIF COLLIN, in Linear Rgession.&lt;BR /&gt;However these diagnostic options are not available in PROC LOGISTIC.&lt;BR /&gt;The Multi-Collinearity Problem is a function of the "Independent"&lt;BR /&gt;variable&lt;BR /&gt;structure and does not really involve the dependent variable itself. */&lt;BR /&gt;&lt;BR /&gt;/* I think that the name of the original macro was %COLLIN and I have&lt;BR /&gt;a copy of this macro but it does not work and I get a variety of errors&lt;BR /&gt;*/&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;##- Please type your reply above this line. Simple formatting, no&lt;BR /&gt;attachments. -##</description>
      <pubDate>Thu, 02 Jun 2016 09:12:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Collinearity-Diagnostics-Using-the-Information-Matrix/m-p/274572#M14483</guid>
      <dc:creator>JonDickens1607</dc:creator>
      <dc:date>2016-06-02T09:12:06Z</dc:date>
    </item>
    <item>
      <title>Re: Collinearity Diagnostics Using the Information Matrix.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Collinearity-Diagnostics-Using-the-Information-Matrix/m-p/274712#M14493</link>
      <description>&lt;P&gt;Do you have a SAS IML license? The macro requires this.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can check by running:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Proc setinit;
Run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Post how you called the macro as well as the macro.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2016 15:14:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Collinearity-Diagnostics-Using-the-Information-Matrix/m-p/274712#M14493</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-06-02T15:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: Collinearity Diagnostics Using the Information Matrix.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Collinearity-Diagnostics-Using-the-Information-Matrix/m-p/274777#M14498</link>
      <description>SAS Macro Attached as requested.&lt;BR /&gt;&lt;BR /&gt;Please check this line: FINAL = (MUSQR||CI||NMISSING||PI`)`; /* The single&lt;BR /&gt;quote commas?? */&lt;BR /&gt;&lt;BR /&gt;​/* ​&lt;BR /&gt;Specify the COVOUT and the OUTEST = SASDSN options in the PROC statement.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Then, specify the SAS Data Set (SASDSN) in the Macro Variable, COVDSN */&lt;BR /&gt;&lt;BR /&gt;I ran Proc Logistic on my data set with the above options in order to&lt;BR /&gt;generate the COV Matrix as a SAS Data Set.&lt;BR /&gt;&lt;BR /&gt;I then called the SAS Macro with the COVDSN = COV Matrix Data Set Parameter.&lt;BR /&gt;&lt;BR /&gt;%COLLIN(COVDSN = );&lt;BR /&gt;&lt;BR /&gt;I am using SAS University Edition 3.5&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;##- Please type your reply above this line. Simple formatting, no&lt;BR /&gt;attachments. -##</description>
      <pubDate>Thu, 02 Jun 2016 19:33:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Collinearity-Diagnostics-Using-the-Information-Matrix/m-p/274777#M14498</guid>
      <dc:creator>JonDickens1607</dc:creator>
      <dc:date>2016-06-02T19:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: Collinearity Diagnostics Using the Information Matrix.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Collinearity-Diagnostics-Using-the-Information-Matrix/m-p/274782#M14499</link>
      <description>&lt;P&gt;You can only include attachments on the website not via email.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2016 19:43:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Collinearity-Diagnostics-Using-the-Information-Matrix/m-p/274782#M14499</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-06-02T19:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: Collinearity Diagnostics Using the Information Matrix.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Collinearity-Diagnostics-Using-the-Information-Matrix/m-p/274783#M14500</link>
      <description>&lt;P&gt;Please place the code in the editor, I dislike downloading attachments.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2016 19:44:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Collinearity-Diagnostics-Using-the-Information-Matrix/m-p/274783#M14500</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-06-02T19:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: Collinearity Diagnostics Using the Information Matrix.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Collinearity-Diagnostics-Using-the-Information-Matrix/m-p/274785#M14501</link>
      <description>/*&lt;BR /&gt;=================================================================================&lt;BR /&gt;*/&lt;BR /&gt;&lt;BR /&gt;/* logistic regression Collinearity diagnostics using the information&lt;BR /&gt;matrix */&lt;BR /&gt;&lt;BR /&gt;/*&lt;BR /&gt;=================================================================================&lt;BR /&gt;*/&lt;BR /&gt;&lt;BR /&gt;%macro collin(covdsn=);&lt;BR /&gt;&lt;BR /&gt;/* Macro to calculate collinearity diagnostics from the&lt;BR /&gt;variance-covariance matrix in&lt;BR /&gt;&lt;BR /&gt;nonlinear regression. in the nonlinear regression program (PROC&lt;BR /&gt;LOGISTIC or PROC&lt;BR /&gt;&lt;BR /&gt;PHREG), specify the COVOUT and the OUTEST = SASdsn options in the PROC&lt;BR /&gt;statement.&lt;BR /&gt;&lt;BR /&gt;Then, specify the SAS data set (SASdsn) in the macro variable, COVDSN,&lt;BR /&gt;when you&lt;BR /&gt;&lt;BR /&gt;invoke this macro. This macro does not work with PROC GENMOD. */&lt;BR /&gt;&lt;BR /&gt;%if (&amp;amp;covdsn ne )&lt;BR /&gt;&lt;BR /&gt;%then %do; /* start of [ %if (&amp;amp;covdsn ne ) %then %do loop ] */&lt;BR /&gt;&lt;BR /&gt;/* option mprint */&lt;BR /&gt;&lt;BR /&gt;%let __stop = 0;&lt;BR /&gt;&lt;BR /&gt;proc iml; /* read the variance – covariance matrix from proc&lt;BR /&gt;logistic */&lt;BR /&gt;&lt;BR /&gt;use &amp;amp;covdsn;&lt;BR /&gt;&lt;BR /&gt;read all var {_name_} into _varname;&lt;BR /&gt;&lt;BR /&gt;_nrvname = nrow(_varname);&lt;BR /&gt;&lt;BR /&gt;if (_nrvname&amp;gt;1)&lt;BR /&gt;&lt;BR /&gt;then do;&lt;BR /&gt;&lt;BR /&gt;_varnam2 = _varname(|2:_nrvname, |);&lt;BR /&gt;&lt;BR /&gt;nmissing = j(nrow(_varnam2),1,.);&lt;BR /&gt;&lt;BR /&gt;labels = {"Eigenval","CondIndx"," "};&lt;BR /&gt;&lt;BR /&gt;_varnam2 = labels//_varnam2;&lt;BR /&gt;&lt;BR /&gt;free _varname labels;&lt;BR /&gt;&lt;BR /&gt;read all var _num_ into varcov(|colname=_nvname|);&lt;BR /&gt;&lt;BR /&gt;_nrcvc = ncol(varcov);&lt;BR /&gt;&lt;BR /&gt;lastvnam = _nvname(|1,_nrcvc|);&lt;BR /&gt;&lt;BR /&gt;if (lastvnam = "_LNLIKE_")&lt;BR /&gt;&lt;BR /&gt;then varcov2 = varcov(|2:_nrvname,1:_nrcvc-1|);&lt;BR /&gt;&lt;BR /&gt;if (lastvnam^ = "_LNLIKE_") then varcov2 =&lt;BR /&gt;varcov(|2:_nrvname,|);&lt;BR /&gt;&lt;BR /&gt;free varcov _nrcvc lastvnam;&lt;BR /&gt;&lt;BR /&gt;covbinv = inv(varcov2);&lt;BR /&gt;&lt;BR /&gt;scale = inv(sqrt(diag(covbinv)));&lt;BR /&gt;&lt;BR /&gt;r = scale*covbinv*scale;&lt;BR /&gt;&lt;BR /&gt;free covbinv scale;&lt;BR /&gt;&lt;BR /&gt;call eigen(musqr,v,r);&lt;BR /&gt;&lt;BR /&gt;free r;&lt;BR /&gt;&lt;BR /&gt;srootmus = sqrt(musqr);&lt;BR /&gt;&lt;BR /&gt;ci = 1/(srootmus/max(srootmus));&lt;BR /&gt;&lt;BR /&gt;phi = (v##2)*diag(musqr##(-1));&lt;BR /&gt;&lt;BR /&gt;sumphi = phi(|,+|);&lt;BR /&gt;&lt;BR /&gt;pi = phi#(sumphi##(-1));&lt;BR /&gt;&lt;BR /&gt;free phi sumphi srootmus v;&lt;BR /&gt;&lt;BR /&gt;final = (musqr||ci||nmissing||pi`)`;&lt;BR /&gt;&lt;BR /&gt;free pi musqr ci nmissing;&lt;BR /&gt;&lt;BR /&gt;_ncfinal = ncol(final);&lt;BR /&gt;&lt;BR /&gt;_nrfinal = nrow(final);&lt;BR /&gt;&lt;BR /&gt;final2=j(_nrfinal,_ncfinal,0);&lt;BR /&gt;&lt;BR /&gt;_ncfp1=_ncfinal+1;&lt;BR /&gt;&lt;BR /&gt;__vdp="VDP";&lt;BR /&gt;&lt;BR /&gt;do i=1 to _ncfinal;&lt;BR /&gt;&lt;BR /&gt;final2(|,_ncfp1-i|)=final(|,i|);&lt;BR /&gt;&lt;BR /&gt;x=char(i,3);&lt;BR /&gt;&lt;BR /&gt;y=compress(concat(__vdp,x));&lt;BR /&gt;&lt;BR /&gt;if i=1 then _vdpname=y;&lt;BR /&gt;&lt;BR /&gt;else _vdpname=_vdpname||y;&lt;BR /&gt;&lt;BR /&gt;end;&lt;BR /&gt;&lt;BR /&gt;free final _nrfinal _ncfinal i x y;&lt;BR /&gt;&lt;BR /&gt;create final2 from final2(|rowname=_varnam2&lt;BR /&gt;colname=_vdpname|);&lt;BR /&gt;&lt;BR /&gt;append from final2(|rowname=_varnam2 colname=_vdpname|);&lt;BR /&gt;&lt;BR /&gt;free _varnam2 _vdpname final2;&lt;BR /&gt;&lt;BR /&gt;end;&lt;BR /&gt;&lt;BR /&gt;if (_nrvname=1)&lt;BR /&gt;&lt;BR /&gt;then do;&lt;BR /&gt;&lt;BR /&gt;x="1";&lt;BR /&gt;&lt;BR /&gt;call symput("__stop",left(x));&lt;BR /&gt;&lt;BR /&gt;print " ";&lt;BR /&gt;&lt;BR /&gt;print&lt;BR /&gt;"**********************************************************";&lt;BR /&gt;&lt;BR /&gt;print "You need to specify the COVOUT option";&lt;BR /&gt;&lt;BR /&gt;print " in either PROC LOGISTIC or PROC PHREG.";&lt;BR /&gt;&lt;BR /&gt;print " This program will not calculate collinearity&lt;BR /&gt;diagnostics.";&lt;BR /&gt;&lt;BR /&gt;print&lt;BR /&gt;"**********************************************************";&lt;BR /&gt;&lt;BR /&gt;print " ";&lt;BR /&gt;&lt;BR /&gt;end;&lt;BR /&gt;&lt;BR /&gt;quit;&lt;BR /&gt;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;%if (&amp;amp;__stop eq 0)&lt;BR /&gt;&lt;BR /&gt;%then %do;&lt;BR /&gt;&lt;BR /&gt;proc print&lt;BR /&gt;&lt;BR /&gt;data=final2 label noobs;&lt;BR /&gt;&lt;BR /&gt;id _varnam2;&lt;BR /&gt;&lt;BR /&gt;title8 "Collinearity diagnostics for nonlinear models&lt;BR /&gt;using";&lt;BR /&gt;&lt;BR /&gt;title9 "the information matrix: Eigenvalues, condition&lt;BR /&gt;indexes,";&lt;BR /&gt;&lt;BR /&gt;title10 "and variance decomposition proportions (VDP's)";&lt;BR /&gt;&lt;BR /&gt;label _varnam2="Variable";&lt;BR /&gt;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;%end; /* end of proc print do loop */&lt;BR /&gt;&lt;BR /&gt;%end; /* end of [ %if (&amp;amp;covdsn ne ) %then %do loop ] */&lt;BR /&gt;&lt;BR /&gt;%else %do; /* start of [ %if (&amp;amp;covdsn ne ) %else %do loop ] */&lt;BR /&gt;&lt;BR /&gt;%put;&lt;BR /&gt;&lt;BR /&gt;%put "*******************************************************";&lt;BR /&gt;&lt;BR /&gt;%put " When you invoke this macro, you have to specify the name";&lt;BR /&gt;&lt;BR /&gt;%put " of a SAS data set that contains the variance-covariance";&lt;BR /&gt;&lt;BR /&gt;%put " matrix from either PROC LOGISTIC or PROC PHREG.";&lt;BR /&gt;&lt;BR /&gt;%put;&lt;BR /&gt;&lt;BR /&gt;%put " You can create this matrix by including the following options";&lt;BR /&gt;&lt;BR /&gt;%put " on the PROC statement: COVOUT and OUTEST=SASdsn,";&lt;BR /&gt;&lt;BR /&gt;%put " where SASdsn is the name of the SAS data set containing";&lt;BR /&gt;&lt;BR /&gt;%put " the variance-covariance matrix.";&lt;BR /&gt;&lt;BR /&gt;%put "*******************************************************";&lt;BR /&gt;&lt;BR /&gt;%put;&lt;BR /&gt;&lt;BR /&gt;%end; /* end of [ %if (&amp;amp;covdsn ne ) else %do loop ] */&lt;BR /&gt;&lt;BR /&gt;%mend collin; /* end of macro collin definition */&lt;BR /&gt;&lt;BR /&gt;%collin(covdsn = ); /* call macro collin with variance-covariance data&lt;BR /&gt;set name */&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;##- Please type your reply above this line. Simple formatting, no&lt;BR /&gt;attachments. -##</description>
      <pubDate>Thu, 02 Jun 2016 19:48:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Collinearity-Diagnostics-Using-the-Information-Matrix/m-p/274785#M14501</guid>
      <dc:creator>JonDickens1607</dc:creator>
      <dc:date>2016-06-02T19:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: Collinearity Diagnostics Using the Information Matrix.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Collinearity-Diagnostics-Using-the-Information-Matrix/m-p/274806#M14502</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;BR /&gt;/* I think that the name of the original macro was %COLLIN and I have&lt;BR /&gt;a copy of this macro &lt;STRONG&gt;but it does not work and I get a variety of errors&lt;/STRONG&gt;&lt;BR /&gt;*/&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Post log with options MPRINT turned on with the error messages.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2016 20:56:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Collinearity-Diagnostics-Using-the-Information-Matrix/m-p/274806#M14502</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-06-02T20:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: Collinearity Diagnostics Using the Information Matrix.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Collinearity-Diagnostics-Using-the-Information-Matrix/m-p/274824#M14503</link>
      <description>TITLE 'STEPWISE REGRESSION ON SQ01_WOE -- SQ59_WOE DATA'; PROC LOGISTIC&lt;BR /&gt;DATA = DATA12345_WOE OUTEST = COVBETAS COVOUT; MODEL GBFLAG(EVENT = '1') =&lt;BR /&gt;SQ01_WOE -- SQ59_WOE / SELECTION = STEPWISE SLENTRY = 0.10 SLSTAY = 0.15&lt;BR /&gt;DETAILS LACKFIT CTABLE ; OUTPUT OUT = PRED P = PHAT LOWER = LCL UPPER = UCL&lt;BR /&gt;PREDPROB = (INDIVIDUAL CROSSVALIDATE); RUN;&lt;BR /&gt;&lt;BR /&gt;/* CHECK THE OUTPUT DATA SET COVBETAS */&lt;BR /&gt;&lt;BR /&gt;PROC CONTENTS&lt;BR /&gt;​ ​&lt;BR /&gt;DATA = COVBETAS ;&lt;BR /&gt;RUN;&lt;BR /&gt;&lt;BR /&gt;PROC PRINT&lt;BR /&gt;​ ​&lt;BR /&gt;DATA = COVBETAS ;&lt;BR /&gt;RUN;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;%COLLIN*(COVDSN = COVBETAS );&lt;BR /&gt;&lt;BR /&gt;​&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt;55&lt;BR /&gt;56 %COLLIN*(COVDSN = COVBETAS );&lt;BR /&gt;"*******************************************************"&lt;BR /&gt;" WHEN YOU INVOKE THIS MACRO, YOU HAVE TO SPECIFY THE NAME"&lt;BR /&gt;" OF A SAS DATA SET THAT CONTAINS THE VARIANCE-COVARIANCE"&lt;BR /&gt;" MATRIX FROM EITHER PROC LOGISTIC OR PROC PHREG."&lt;BR /&gt;" YOU CAN CREATE THIS MATRIX BY INCLUDING THE FOLLOWING OPTIONS"&lt;BR /&gt;" ON THE PROC STATEMENT: COVOUT AND OUTEST=SASDSN,"&lt;BR /&gt;" WHERE SASDSN IS THE NAME OF THE SAS DATA SET CONTAINING"&lt;BR /&gt;" THE VARIANCE-COVARIANCE MATRIX."&lt;BR /&gt;"*******************************************************"&lt;BR /&gt;57&lt;BR /&gt;58 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt;70&lt;BR /&gt;&lt;BR /&gt;##- Please type your reply above this line. Simple formatting, no&lt;BR /&gt;attachments. -##</description>
      <pubDate>Thu, 02 Jun 2016 22:17:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Collinearity-Diagnostics-Using-the-Information-Matrix/m-p/274824#M14503</guid>
      <dc:creator>JonDickens1607</dc:creator>
      <dc:date>2016-06-02T22:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: Collinearity Diagnostics Using the Information Matrix.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Collinearity-Diagnostics-Using-the-Information-Matrix/m-p/274825#M14504</link>
      <description>&lt;P&gt;I am using SAS University Edistion 3.5 which includes PROC IML&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2016 22:27:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Collinearity-Diagnostics-Using-the-Information-Matrix/m-p/274825#M14504</guid>
      <dc:creator>JonDickens1607</dc:creator>
      <dc:date>2016-06-02T22:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: Collinearity Diagnostics Using the Information Matrix.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Collinearity-Diagnostics-Using-the-Information-Matrix/m-p/274830#M14506</link>
      <description>&lt;P&gt;Previous post included a typing error in the SAS Code calling the Macro Collin.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached the SAS LOG File that is generated when I call the macro&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%COLLIN(COVDSN = COVBETAS );&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have also attached the SAS Program Code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2016 22:56:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Collinearity-Diagnostics-Using-the-Information-Matrix/m-p/274830#M14506</guid>
      <dc:creator>JonDickens1607</dc:creator>
      <dc:date>2016-06-02T22:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: Collinearity Diagnostics Using the Information Matrix.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Collinearity-Diagnostics-Using-the-Information-Matrix/m-p/274843#M14507</link>
      <description>&lt;P&gt;Found one that worked. I have no idea if this is statistically correct, only program wise.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Macro definition:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro collin(covdsn=, procdr=, parminfo=);
%if %upcase(&amp;amp;procdr)=GENMOD %then %do;
data next_1;
 set &amp;amp;parminfo;
 attrib parnum format=$25.;
 parnum=parameter;
 if parnum='Prm1' then parnum='Prm01';
 if parnum='Prm2' then parnum='Prm02';
 if parnum='Prm3' then parnum='Prm03';
 if parnum='Prm4' then parnum='Prm04';
 if parnum='Prm5' then parnum='Prm05';
 if parnum='Prm6' then parnum='Prm06';
 if parnum='Prm7' then parnum='Prm07';
 if parnum='Prm8' then parnum='Prm08';
 if parnum='Prm9' then parnum='Prm09';
 if parnum='Prm10' then parnum='Prm10';
 if parnum='Prm11' then parnum='Prm11';
 if parnum='Prm12' then parnum='Prm12';
 if parnum='Prm13' then parnum='Prm13';
 if parnum='Prm14' then parnum='Prm14';
 if parnum='Prm15' then parnum='Prm15';
 if parnum='Prm16' then parnum='Prm16';
 if parnum='Prm17' then parnum='Prm17';
 if parnum='Prm18' then parnum='Prm18';
 if parnum='Prm19' then parnum='Prm19';
 if parnum='Prm20' then parnum='Prm20'
;
 rename parnum=parm;
run;
proc sort data=next_1;
 by parm;
run;
data next_1a;
 set &amp;amp;covdsn;
 attrib parm format=$25.
;
 parm=rowname;
 if parm='Prm1' then parm='Prm01'
;
 if parm='Prm2' then parm='Prm02'
;
 if parm='Prm3' then parm='Prm03'
;
 if parm='Prm4' then parm='Prm04'
;
 if parm='Prm5' then parm='Prm05'
;
 if parm='Prm6' then parm='Prm06'
;
 if parm='Prm7' then parm='Prm07'
;
 if parm='Prm8' then parm='Prm08'
;
 if parm='Prm9' then parm='Prm09'
;
 if parm='Prm10' then parm='Prm10'
;
 if parm='Prm11' then parm='Prm11'
;
 if parm='Prm12' then parm='Prm12'
;
 if parm='Prm13' then parm='Prm13'
;
 if parm='Prm14' then parm='Prm14'
;
 if parm='Prm15' then parm='Prm15'
;
 if parm='Prm16' then parm='Prm16'
;
 if parm='Prm17' then parm
='Prm17'
;
 if parm='Prm18' then parm='Prm18'
;
 if parm='Prm19' then parm='Prm19'
;
 if parm='Prm20' then parm='Prm20'
;
run;
proc sort data=next_1a;
 by parm;
run;
data next_2(drop=effect);
 merge next_1a( in=in1a)
 next_1 (in=in1);
 by parm;
 if in1a;
 parm=effect;
 rename parm=_name_;
run;
data next_3;
 set next_2;
 if _name_='SCALE' then delete;
run;
data next_4;
 length _name_ $25
;
 _name_= 'ESTIMATE'
;
 output;
run;

data next_5;
 set next_4
 next_3;
run;
proc print data=next_5;
 title Input dataset--GENMOD;
run;
%end;
%else %do;
data next_5;
 set &amp;amp;covdsn;
run;
proc print data=next_5;
 title Input dataset--LOGISTIC/PHREG;
run;
%end;
%if (next_5 ne ) %then %do;
%let __stop=0;
proc iml;
 use next_5;
 read all var {_name_} into _varname;
 _nrvname=nrow(_varname);
 if (_nrvname&amp;gt;1) then do;
 _varnam2=_varname(|2:_nrvname, |);
 nmissing=j(nrow(_varnam2),1,.);
 labels={"EIGENVAL","CONDINDX"," "};
 _varnam2=labels//_varnam2;
 free _varname labels;
 read all var _num_ into varcov(|colname=_nvname|);
 _nrcvc=ncol(varcov);
 lastvnam=_nvname(|1,_nrcvc|);
 if (lastvnam="_LNLIKE_") then
varcov2=varcov(|2:_nrvname,1:_nrcvc-1|);
 if (lastvnam^="_LNLIKE_") then varcov2=varcov(|2:_nrvname,|);
%* If the covariance matrix is from GENMOD using the repeated measured
design, ;
%* then the lower diagonal will have the correlations and the upper
diagonal will have;
%* the covariances. The next section of code replaces the lower
diagonal with the upper;
%* diagonal to make a symmetric matrix. If the matrix is symmetrical
already, then the;
%* next section of code will not affect anything.;
 vc2_c=ncol(varcov2);
 vc2_r=nrow(varcov2);
 do cl=1 to vc2_c;
 do rw=1 to vc2_r;
 varcov2(|rw,cl|) = varcov2(|cl,rw|);
 end;
 end;
 print varcov2;
 free varcov _nrcvc lastvnam vc2_c vc2_r cl;
 covbinv=inv(varcov2);
 scale=inv(sqrt(diag(covbinv)));
 r=scale*covbinv*scale;
 free covbinv scale;
 call eigen(musqr,v,r);
 free r;
 srootmus=sqrt(musqr);
 ci=1/(srootmus/max(srootmus));
 phi=(v##2)*diag(musqr##(-1));
 sumphi=phi(|,+|);
 pi=phi#(sumphi##(-1));
 free phi sumphi srootmus v;
 final=(musqr||ci||nmissing||pi`)`;
 free pi musqr ci nmissing;
 _ncfinal=ncol(final);
 _nrfinal=nrow(final);
 final2=j(_nrfinal,_ncfinal,0);
 _ncfp1=_ncfinal+1;
 __vdp="VDP";
 do i=1 to _ncfinal;
 final2(|,_ncfp1-i|)=final(|,i|);
 x=char(i,3);
 y=compress(concat(__vdp,x));
 if i=1 then _vdpname=y;
 else _vdpname=_vdpname||y;
 end;
 free final _nrfinal _ncfinal i x y;
 create final2 from final2(|rowname=_varnam2 colname=_vdpname|);
 append from final2(|rowname=_varnam2|);
 free _varnam2 _vdpname final2;
 end;
 if (_nrvname=1) then do;
 x="1";
 call symput("__stop",left(x));
 print " ";
 print
"**********************************************************";
 print "You need to specify the covout option";
 print "in either proc logistic or proc phreg.";
 print "This program will not calculate collinearity
diagnostics.";
 print
"**********************************************************";
 print " ";
 end;
 quit;
run;
%if (&amp;amp;__stop eq 0) %then %do;
proc print data=final2 label noobs;
 id _varnam2;
 title8 "Collinearity diagnostics for nonlinear models using";
 title9 "the information matrix: Eigenvalues, Condition Indexes,";
 title10 "and Variance Decomposition Proportions (VDPs)";
 label _varnam2="VARIABLE";
run;
%end;
%end;
%else %do;
 %put;
 %put "*******************************************************";
 %put "When you invoke this macro, you have to specify the name";
 %put "of a SAS data set that contains the variance-covariance";
 %put "matrix from LOGISTIC, PHREG, or GENMOD.";
 %put;
 %put "For more information, see the macro code (comments";
 %put "are included with instructions.";
 %put "*******************************************************";
 %put;
%end;
proc datasets;
 delete next_1 next_1a next_2 next_3 next_4 next_5;
run;
quit;
%mend collin;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Sample execution:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc logistic data=sashelp.heart covout outest=sasdsn;
class chol_status sex;
model status= chol_status ageatstart sex height;
run;

options mprint symbolgen;
%collin(covdsn=sasdsn);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Source: &lt;A href="https://etd.library.emory.edu/file/view/pid/emory:939x5/etd/emory:939w1/kharod_dissertation.pdf&amp;nbsp;" target="_blank"&gt;https://etd.library.emory.edu/file/view/pid/emory:939x5/etd/emory:939w1/kharod_dissertation.pdf&amp;nbsp;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2016 03:23:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Collinearity-Diagnostics-Using-the-Information-Matrix/m-p/274843#M14507</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-06-03T03:23:10Z</dc:date>
    </item>
  </channel>
</rss>

