<?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: Proc Reg parameter estimates for AIC and full fit don't match in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Reg-parameter-estimates-for-AIC-and-full-fit-don-t-match/m-p/767434#M37523</link>
    <description>Thanks! The reason I am running the second model is to get the standardized coefficients for the so called best model from AIC. I seem to lose DF with the AIC selected model which is probably why the parameters are different (?). Can you think of any remedy I might try?</description>
    <pubDate>Mon, 13 Sep 2021 14:55:50 GMT</pubDate>
    <dc:creator>TedAngradi</dc:creator>
    <dc:date>2021-09-13T14:55:50Z</dc:date>
    <item>
      <title>Proc Reg parameter estimates for AIC and full fit don't match</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Reg-parameter-estimates-for-AIC-and-full-fit-don-t-match/m-p/767415#M37520</link>
      <description>&lt;P&gt;I am using AIC to select the best model in Proc Reg, but&amp;nbsp; when I run the best model in Proc Reg the parameter estimates do not match estimates from the output for the AIC selected model.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here is the code:&lt;/STRONG&gt;&lt;BR /&gt;&lt;EM&gt;proc reg data=watfront.clean_covar_trans outest=est_TransADI_national ;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;model TransADI_national =&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;transpopdensity&amp;nbsp;&lt;/EM&gt;&lt;EM&gt;transhouseincome&amp;nbsp;&lt;/EM&gt;&lt;EM&gt;transartificialshore_p transBF_count&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;transFlood_P transImperv_P&amp;nbsp;&lt;/EM&gt;&lt;EM&gt;transImperv_PC transParkdist&amp;nbsp;&lt;/EM&gt;&lt;EM&gt;transPM10removed_P transRipariantree_P transTreecover_P&amp;nbsp;&lt;/EM&gt;&lt;EM&gt;transTreeview_P transwalkability&amp;nbsp;&lt;/EM&gt;&lt;EM&gt;transOSMhybrid_D transOSMstream_D&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;/ selection=adjrsq sse aic ;&amp;nbsp;&lt;/EM&gt;&lt;EM&gt;run; quit;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;proc sort data = est_TransADI_national ; by _aic_;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;data est_TransADI_national; set est_TransADI_national; if _N_ LE 1 then output;run;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Proc export data = est_TransADI_national &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;outfile = 'L:\lab\GIS\epa\R3\SHC 9.3.1\SAS\local backup\reg_est\est_TransADI_national.xlsx'&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;DBMS = xlsx replace;run;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;proc reg data=watfront.clean_covar_trans ;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;model TransADI_national = transhouseincome transimperv_p transimperv_pc&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;transpm10removed_p transtreecover_p transtreeview_p transosmhybrid_d&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;/ stb;&lt;/EM&gt;&lt;EM&gt;run;&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;here is the output for the best model from AIC&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;_MODEL_&lt;/TD&gt;&lt;TD&gt;MODEL1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;_TYPE_&lt;/TD&gt;&lt;TD&gt;PARMS&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;_DEPVAR_&lt;/TD&gt;&lt;TD&gt;TransADI_national&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;_RMSE_&lt;/TD&gt;&lt;TD&gt;0.145552081&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Intercept&lt;/TD&gt;&lt;TD&gt;5.424183829&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;transhouseincome&lt;/TD&gt;&lt;TD&gt;-0.98637025&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;transimperv_p&lt;/TD&gt;&lt;TD&gt;-0.172107811&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;transimperv_pc&lt;/TD&gt;&lt;TD&gt;0.165121251&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;transpm10removed_p&lt;/TD&gt;&lt;TD&gt;-7.681898647&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;transtreecover_p&lt;/TD&gt;&lt;TD&gt;0.627428135&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;transtreeview_p&lt;/TD&gt;&lt;TD&gt;-0.443097223&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;transosmhybrid_d&lt;/TD&gt;&lt;TD&gt;-0.04531394&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;TransADI_national&lt;/TD&gt;&lt;TD&gt;-1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;_IN_&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;_P_&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;_EDF_&lt;/TD&gt;&lt;TD&gt;146&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;_SSE_&lt;/TD&gt;&lt;TD&gt;3.093069598&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;_RSQ_&lt;/TD&gt;&lt;TD&gt;0.805281478&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;_AIC_&lt;/TD&gt;&lt;TD&gt;-585.7994455&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here is the output for the model selected using the AIC criteria:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TedAngradi_0-1631541208086.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/63537i7D0D2563375B5AC6/image-size/large?v=v2&amp;amp;px=999" role="button" title="TedAngradi_0-1631541208086.png" alt="TedAngradi_0-1631541208086.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Note there are missing values for some predictors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The parameter estimates and other statistics do not match and I don't know why. Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 13:59:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Reg-parameter-estimates-for-AIC-and-full-fit-don-t-match/m-p/767415#M37520</guid>
      <dc:creator>TedAngradi</dc:creator>
      <dc:date>2021-09-13T13:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Reg parameter estimates for AIC and full fit don't match</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Reg-parameter-estimates-for-AIC-and-full-fit-don-t-match/m-p/767417#M37521</link>
      <description>&lt;P&gt;You are using two different models but you expect the same regression coefficients?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, the first model statement has variable&amp;nbsp;transBF_count, but the second model statement does not have this variable. I would not expect the coefficients to match unless the models are identical.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps this is indeed caused by missing data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 14:07:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Reg-parameter-estimates-for-AIC-and-full-fit-don-t-match/m-p/767417#M37521</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-09-13T14:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Reg parameter estimates for AIC and full fit don't match</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Reg-parameter-estimates-for-AIC-and-full-fit-don-t-match/m-p/767418#M37522</link>
      <description>&lt;P&gt;Missing Values PROC REG constructs only one crossproducts matrix for the variables in all regressions. If any variable needed for any regressionis missing, the observation is excluded from all estimates. If you include variables with missing values in the VAR statement, the corresponding observations are excluded from all analyses, even if you never include the variables in a model.&amp;nbsp; PROC REG assumes that you might want to include these variables after the first RUN statement and deletes observations with missing values.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 14:07:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Reg-parameter-estimates-for-AIC-and-full-fit-don-t-match/m-p/767418#M37522</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2021-09-13T14:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Reg parameter estimates for AIC and full fit don't match</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Reg-parameter-estimates-for-AIC-and-full-fit-don-t-match/m-p/767434#M37523</link>
      <description>Thanks! The reason I am running the second model is to get the standardized coefficients for the so called best model from AIC. I seem to lose DF with the AIC selected model which is probably why the parameters are different (?). Can you think of any remedy I might try?</description>
      <pubDate>Mon, 13 Sep 2021 14:55:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Reg-parameter-estimates-for-AIC-and-full-fit-don-t-match/m-p/767434#M37523</guid>
      <dc:creator>TedAngradi</dc:creator>
      <dc:date>2021-09-13T14:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Reg parameter estimates for AIC and full fit don't match</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Reg-parameter-estimates-for-AIC-and-full-fit-don-t-match/m-p/767451#M37524</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt;&amp;nbsp;&lt;SPAN&gt;to get the standardized coefficients&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Can't you use the STB option on the model statement (after the forward slash / )?&lt;/P&gt;
&lt;DIV class="xisDoc-refProc"&gt;
&lt;DIV id="statug.reg.stmtmodel" class="aa-section"&gt;
&lt;DIV class="aa-options"&gt;
&lt;DL class="aa-options"&gt;
&lt;DT&gt;&lt;SPAN class=" aa-term "&gt;STB &lt;/SPAN&gt;&lt;/DT&gt;
&lt;DD&gt;
&lt;P class="xisDoc-paraSimpleFirst"&gt;produces standardized regression coefficients.&lt;BR /&gt;A standardized regression coefficient is computed by dividing a parameter estimate by the ratio of the sample standard deviation of the dependent variable to the sample standard deviation of the regressor.&lt;/P&gt;
&lt;P class="xisDoc-paraSimpleFirst"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="xisDoc-paraSimpleFirst"&gt;Koen&lt;/P&gt;
&lt;/DD&gt;
&lt;/DL&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 13 Sep 2021 15:46:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Reg-parameter-estimates-for-AIC-and-full-fit-don-t-match/m-p/767451#M37524</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2021-09-13T15:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Reg parameter estimates for AIC and full fit don't match</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Reg-parameter-estimates-for-AIC-and-full-fit-don-t-match/m-p/767481#M37526</link>
      <description>Look at the first table in your output from each PROC - specifically compare the Number of Observations Used. If they are not the same, you should not expect the same parameter estimates.&lt;BR /&gt;</description>
      <pubDate>Mon, 13 Sep 2021 16:57:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Reg-parameter-estimates-for-AIC-and-full-fit-don-t-match/m-p/767481#M37526</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-09-13T16:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Reg parameter estimates for AIC and full fit don't match</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Reg-parameter-estimates-for-AIC-and-full-fit-don-t-match/m-p/767506#M37527</link>
      <description>Thank you. Yes there is apparently a difference in how the full fit Proc Reg and the best fit model from the model selection based on min AIC deals with missing predictor values resulting in different error DF and different parameter estimates for the same model (because the dataset is different). I think I will use AIC to select a model and then rerun the best fit model to get the standard coefficients.</description>
      <pubDate>Mon, 13 Sep 2021 18:15:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Reg-parameter-estimates-for-AIC-and-full-fit-don-t-match/m-p/767506#M37527</guid>
      <dc:creator>TedAngradi</dc:creator>
      <dc:date>2021-09-13T18:15:19Z</dc:date>
    </item>
  </channel>
</rss>

