<?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: how to calculate VIF using PROC GLM? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-calculate-VIF-using-PROC-GLM/m-p/943296#M47108</link>
    <description>&lt;P&gt;Concurring with&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL class="lia-list-style-type-square"&gt;
&lt;LI&gt;In PROC GLMMOD , you can use the OUTDESIGN= option.&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;In PROC GLMMOD , you can use ODS to create the design matrix data set.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;The results are equivalent, but the columns of the data set produced by ODS have names that are directly related to the names of their corresponding effects.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Here's an example of the latter option:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://go.documentation.sas.com/doc/en/statcdc/14.3/statug/statug_glmmod_examples02.htm" target="_blank"&gt;SAS Help Center: Example 49.2 Factorial Screening&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods output DesignPoints = DesignMatrix;
proc glmmod data=Screening;
   model y = a|b|c|d|e@2;
run;

proc reg data=DesignMatrix;
   model y = a--d_e;
   model y = a--d_e / selection = forward
                      details   = summary
                      slentry   = 0.05;
run;
QUIT;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;Koen&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Sep 2024 13:14:41 GMT</pubDate>
    <dc:creator>sbxkoenk</dc:creator>
    <dc:date>2024-09-10T13:14:41Z</dc:date>
    <item>
      <title>how to calculate VIF using PROC GLM?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-calculate-VIF-using-PROC-GLM/m-p/943288#M47106</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any way to check multicollinearity using proc GLM?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glm data=tmp  ; 
class study CNS stk_loc sex;
model fim =study sex age CNS stk_loc /solution ss3 ;
run; 
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The dependent variable is continuous&lt;/P&gt;
&lt;P&gt;All the independent variables are categorical except age which is continuous&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am familiar with VIF in proc reg, but needed to create dummy variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;any input appreciated&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 12:20:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-to-calculate-VIF-using-PROC-GLM/m-p/943288#M47106</guid>
      <dc:creator>bhr-q</dc:creator>
      <dc:date>2024-09-10T12:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to calculate VIF using PROC GLM?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-calculate-VIF-using-PROC-GLM/m-p/943290#M47107</link>
      <description>&lt;P&gt;Use PROC GLMMOD to obtain the x matrix used by PROC GLM. Then run PROC REG with the VIF option, using the output of PROC GLMMOD as input to PROC REG.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or maybe this:&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/77531415/sas-basic-analysis-problems" target="_blank"&gt;https://stackoverflow.com/questions/77531415/sas-basic-analysis-problems&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 12:46:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-to-calculate-VIF-using-PROC-GLM/m-p/943290#M47107</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-09-10T12:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to calculate VIF using PROC GLM?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-calculate-VIF-using-PROC-GLM/m-p/943296#M47108</link>
      <description>&lt;P&gt;Concurring with&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL class="lia-list-style-type-square"&gt;
&lt;LI&gt;In PROC GLMMOD , you can use the OUTDESIGN= option.&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;In PROC GLMMOD , you can use ODS to create the design matrix data set.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;The results are equivalent, but the columns of the data set produced by ODS have names that are directly related to the names of their corresponding effects.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Here's an example of the latter option:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://go.documentation.sas.com/doc/en/statcdc/14.3/statug/statug_glmmod_examples02.htm" target="_blank"&gt;SAS Help Center: Example 49.2 Factorial Screening&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods output DesignPoints = DesignMatrix;
proc glmmod data=Screening;
   model y = a|b|c|d|e@2;
run;

proc reg data=DesignMatrix;
   model y = a--d_e;
   model y = a--d_e / selection = forward
                      details   = summary
                      slentry   = 0.05;
run;
QUIT;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;Koen&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 13:14:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-to-calculate-VIF-using-PROC-GLM/m-p/943296#M47108</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2024-09-10T13:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: how to calculate VIF using PROC GLM?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-calculate-VIF-using-PROC-GLM/m-p/943432#M47119</link>
      <description>&lt;P&gt;1) You could use PROC GLMSELECT to eliminate these&amp;nbsp;&lt;SPAN&gt;multicollinearity&amp;nbsp; variables.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2)You could use PROC GENMOD + CORRB option to check the correlation between these estiamte coefficient.&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc genmod data=sashelp.heart  ; 
class status bp_Status sex;
model weight =status bp_Status sex height / corrb ;
quit; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1726019102288.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/100209iF57870328F1E6B6D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1726019102288.png" alt="Ksharp_0-1726019102288.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2024 01:45:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-to-calculate-VIF-using-PROC-GLM/m-p/943432#M47119</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-09-11T01:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to calculate VIF using PROC GLM?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-calculate-VIF-using-PROC-GLM/m-p/943435#M47120</link>
      <description>Thanks for your answer, it was interesting to get the tolerance using Proc GLM, but when I used Proc GLM with the tolerance option it didn't show me any tolerance.</description>
      <pubDate>Wed, 11 Sep 2024 02:22:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-to-calculate-VIF-using-PROC-GLM/m-p/943435#M47120</guid>
      <dc:creator>bhr-q</dc:creator>
      <dc:date>2024-09-11T02:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: how to calculate VIF using PROC GLM?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-calculate-VIF-using-PROC-GLM/m-p/943436#M47121</link>
      <description>Thanks for your answer, it was helpful.</description>
      <pubDate>Wed, 11 Sep 2024 02:24:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-to-calculate-VIF-using-PROC-GLM/m-p/943436#M47121</guid>
      <dc:creator>bhr-q</dc:creator>
      <dc:date>2024-09-11T02:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to calculate VIF using PROC GLM?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-calculate-VIF-using-PROC-GLM/m-p/943450#M47122</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/465427"&gt;@bhr-q&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Thanks for your answer, it was interesting to get the tolerance using Proc GLM, but when I used Proc GLM with the tolerance option it didn't show me any tolerance.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Weird.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Here's some info &lt;/SPAN&gt;&lt;SPAN&gt;on the tolerance output in PROC GLM :&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL class="lia-list-style-type-square"&gt;
&lt;LI&gt;&lt;SPAN&gt;The Type 1 tolerance of a parameter is the tolerance for this parameter with respect to the preceding parameters in the model.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;The Type 2 tolerance of a parameter is the tolerance for this parameter with respect to all other parameters in the model.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;The TYPE 2 Tolerance is consistent with the TOL option on the MODEL statement in PROC REG, which is 1/VIF.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is your choice which tolerance to use.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;Koen&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2024 08:27:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-to-calculate-VIF-using-PROC-GLM/m-p/943450#M47122</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2024-09-11T08:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to calculate VIF using PROC GLM?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-calculate-VIF-using-PROC-GLM/m-p/943458#M47123</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;1) You could use PROC GLMSELECT to eliminate these&amp;nbsp;&lt;SPAN&gt;multicollinearity&amp;nbsp; variables.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2)You could use PROC GENMOD + CORRB option to check the correlation between these estiamte coefficient.&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc genmod data=sashelp.heart  ; 
class status bp_Status sex;
model weight =status bp_Status sex height / corrb ;
quit; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1726019102288.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/100209iF57870328F1E6B6D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1726019102288.png" alt="Ksharp_0-1726019102288.png" /&gt;&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;The problem with CORRB is that it only looks for pairwise correlations. Maybe for some data sets, that's fine but it will miss more complicated types of correlations. VIF (and Tolerance) looks for correlation with the combination of all other parameters in the model.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2024 11:05:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-to-calculate-VIF-using-PROC-GLM/m-p/943458#M47123</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-09-11T11:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: how to calculate VIF using PROC GLM?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-calculate-VIF-using-PROC-GLM/m-p/943579#M47133</link>
      <description>&lt;P&gt;Paige,&lt;BR /&gt;I know what you are talking about (linear combination of multiple variables).&lt;BR /&gt;But I don't think there is a problem by deleting/detecting a variable one by one(the&amp;nbsp;linear combination of multiple variables must be high correlated with one of these variables ).&lt;BR /&gt;If you are not agree with that , you could try PROC GLMSELECT or HPGENSELECT that would take care of your consideration.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2024 00:30:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-to-calculate-VIF-using-PROC-GLM/m-p/943579#M47133</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-09-12T00:30:13Z</dc:date>
    </item>
  </channel>
</rss>

