<?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: DFBETAS in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/DFBETAS/m-p/465551#M24241</link>
    <description>&lt;P&gt;Fix the errors in the order they appear. When you fix the first ones the latter ones will likely go away too.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So your first error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;ERROR: Variable geograph in list does not match type prescribed for this list.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So GeoGraph is likely a character&amp;nbsp;variable when it should be numeric to be included in a regression model for obvious reasons.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Convert the variable to a numeric variable and it will work.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your PLOT statements later on don't make sense though, they aren't in a PROC. Wherever you're referencing is also very outdated, PLOT statements within PROC REG have been disabled for a while and PROC GPLOT is outdated as well. If you want to create a graph try SGPLOT procedures instead. Make sure to reference the correct documentation for your version of SAS/STAT which you can check using:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc product_status;run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The latest version is SAS/STAT 14.3&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/189141"&gt;@tanya13&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;STRONG&gt;HI I AM RUNNING THE FOLLOWING CODE IN ORDER TO COMPUTE THE VALUE OF THE DFBETAS FOR EACH STATE, BUT I AM GETTING MANY WARNINGS AND&amp;nbsp; ERRORS&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc reg data=newsalaries;&lt;BR /&gt;model teach_sal = edu_spen geograph area2 area3/ influence vif;&lt;BR /&gt;output out=new1 h=hatdiags p=pred r=resid&lt;BR /&gt;student=stres cookd= cooksD dffits= dffits ;&lt;BR /&gt;title1 'DFBETAS for each state';&lt;BR /&gt;symbol1 value=dot pointlabel = (height = 10pt&lt;BR /&gt;'#state');&lt;BR /&gt;run;&lt;BR /&gt;plot stres*pred;&lt;BR /&gt;plot hatdiags*pred;&lt;BR /&gt;plot cooksD*pred;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;THESE ARE THE WARNINGS AND ERRORS I AM GETTING AND I HAVE TRIED REPLACING THE "PRED" WITH "GEOGRAPH" BUT THEN I GET ANOTHER ERROR. I AM USING SAS VERSION 9.4. I WOULD REALLY APPRECIATE SOME HELP WITH THIS. THANK YOU.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;551 proc reg data=newsalaries;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;552 model teach_sal = edu_spen geograph area2 area3/ influence vif;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ERROR: Variable geograph in list does not match type prescribed for this list.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;NOTE: The previous statement has been deleted.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;553 output out=new1 h=hatdiags p=pred r=resid&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;554 student=stres cookd= cooksD dffits= dffits ;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;555 title1 'DFBETAS for each state';&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;556 symbol1 value=dot pointlabel = (height = 10pt&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;557 '#state');&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;558 run;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;WARNING: No variables specified for an SSCP matrix. Execution terminating.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;NOTE: PROCEDURE REG used (Total process time):&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;real time 0.04 seconds&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;cpu time 0.03 seconds&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;NOTE: The data set WORK.NEW1 has 0 observations and 0 variables.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;WARNING: Data set WORK.NEW1 was not replaced because new file is incomplete.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;559 plot stres*pred;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;180&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;560 plot hatdiags*pred;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;180&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;561 plot cooksD*pred;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;180&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;562 run;&lt;/STRONG&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 29 May 2018 01:03:09 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-05-29T01:03:09Z</dc:date>
    <item>
      <title>DFBETAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/DFBETAS/m-p/465536#M24240</link>
      <description>&lt;P&gt;&lt;STRONG&gt;HI I AM RUNNING THE FOLLOWING CODE IN ORDER TO COMPUTE THE VALUE OF THE DFBETAS FOR EACH STATE, BUT I AM GETTING MANY WARNINGS AND&amp;nbsp; ERRORS&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc reg data=newsalaries;&lt;BR /&gt;model teach_sal = edu_spen geograph area2 area3/ influence vif;&lt;BR /&gt;output out=new1 h=hatdiags p=pred r=resid&lt;BR /&gt;student=stres cookd= cooksD dffits= dffits ;&lt;BR /&gt;title1 'DFBETAS for each state';&lt;BR /&gt;symbol1 value=dot pointlabel = (height = 10pt&lt;BR /&gt;'#state');&lt;BR /&gt;run;&lt;BR /&gt;plot stres*pred;&lt;BR /&gt;plot hatdiags*pred;&lt;BR /&gt;plot cooksD*pred;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;THESE ARE THE WARNINGS AND ERRORS I AM GETTING AND I HAVE TRIED REPLACING THE "PRED" WITH "GEOGRAPH" BUT THEN I GET ANOTHER ERROR. I AM USING SAS VERSION 9.4. I WOULD REALLY APPRECIATE SOME HELP WITH THIS. THANK YOU.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;551 proc reg data=newsalaries;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;552 model teach_sal = edu_spen geograph area2 area3/ influence vif;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ERROR: Variable geograph in list does not match type prescribed for this list.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;NOTE: The previous statement has been deleted.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;553 output out=new1 h=hatdiags p=pred r=resid&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;554 student=stres cookd= cooksD dffits= dffits ;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;555 title1 'DFBETAS for each state';&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;556 symbol1 value=dot pointlabel = (height = 10pt&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;557 '#state');&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;558 run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WARNING: No variables specified for an SSCP matrix. Execution terminating.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;NOTE: PROCEDURE REG used (Total process time):&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;real time 0.04 seconds&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;cpu time 0.03 seconds&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NOTE: The data set WORK.NEW1 has 0 observations and 0 variables.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;WARNING: Data set WORK.NEW1 was not replaced because new file is incomplete.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;559 plot stres*pred;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;180&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;560 plot hatdiags*pred;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;180&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;561 plot cooksD*pred;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;180&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;562 run;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 May 2018 23:35:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/DFBETAS/m-p/465536#M24240</guid>
      <dc:creator>tanya13</dc:creator>
      <dc:date>2018-05-28T23:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: DFBETAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/DFBETAS/m-p/465551#M24241</link>
      <description>&lt;P&gt;Fix the errors in the order they appear. When you fix the first ones the latter ones will likely go away too.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So your first error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;ERROR: Variable geograph in list does not match type prescribed for this list.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So GeoGraph is likely a character&amp;nbsp;variable when it should be numeric to be included in a regression model for obvious reasons.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Convert the variable to a numeric variable and it will work.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your PLOT statements later on don't make sense though, they aren't in a PROC. Wherever you're referencing is also very outdated, PLOT statements within PROC REG have been disabled for a while and PROC GPLOT is outdated as well. If you want to create a graph try SGPLOT procedures instead. Make sure to reference the correct documentation for your version of SAS/STAT which you can check using:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc product_status;run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The latest version is SAS/STAT 14.3&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/189141"&gt;@tanya13&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;STRONG&gt;HI I AM RUNNING THE FOLLOWING CODE IN ORDER TO COMPUTE THE VALUE OF THE DFBETAS FOR EACH STATE, BUT I AM GETTING MANY WARNINGS AND&amp;nbsp; ERRORS&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc reg data=newsalaries;&lt;BR /&gt;model teach_sal = edu_spen geograph area2 area3/ influence vif;&lt;BR /&gt;output out=new1 h=hatdiags p=pred r=resid&lt;BR /&gt;student=stres cookd= cooksD dffits= dffits ;&lt;BR /&gt;title1 'DFBETAS for each state';&lt;BR /&gt;symbol1 value=dot pointlabel = (height = 10pt&lt;BR /&gt;'#state');&lt;BR /&gt;run;&lt;BR /&gt;plot stres*pred;&lt;BR /&gt;plot hatdiags*pred;&lt;BR /&gt;plot cooksD*pred;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;THESE ARE THE WARNINGS AND ERRORS I AM GETTING AND I HAVE TRIED REPLACING THE "PRED" WITH "GEOGRAPH" BUT THEN I GET ANOTHER ERROR. I AM USING SAS VERSION 9.4. I WOULD REALLY APPRECIATE SOME HELP WITH THIS. THANK YOU.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;551 proc reg data=newsalaries;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;552 model teach_sal = edu_spen geograph area2 area3/ influence vif;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ERROR: Variable geograph in list does not match type prescribed for this list.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;NOTE: The previous statement has been deleted.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;553 output out=new1 h=hatdiags p=pred r=resid&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;554 student=stres cookd= cooksD dffits= dffits ;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;555 title1 'DFBETAS for each state';&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;556 symbol1 value=dot pointlabel = (height = 10pt&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;557 '#state');&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;558 run;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;WARNING: No variables specified for an SSCP matrix. Execution terminating.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;NOTE: PROCEDURE REG used (Total process time):&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;real time 0.04 seconds&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;cpu time 0.03 seconds&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;NOTE: The data set WORK.NEW1 has 0 observations and 0 variables.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;WARNING: Data set WORK.NEW1 was not replaced because new file is incomplete.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;559 plot stres*pred;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;180&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;560 plot hatdiags*pred;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;180&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;561 plot cooksD*pred;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;180&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;562 run;&lt;/STRONG&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 May 2018 01:03:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/DFBETAS/m-p/465551#M24241</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-05-29T01:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: DFBETAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/DFBETAS/m-p/465561#M24242</link>
      <description>&lt;P&gt;Converting GEOGRAPH to numeric may not make sense, if the variable is not something that can be converted to numbers (like if it is a US state, then numbers don't make sense). In that case PROC GLM could be used to handle the model fit but it won't compute DFBETAS. Yes, I know, that's not fair.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could create dummy variables and use PROC REG and computer DFBETAS.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 May 2018 01:22:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/DFBETAS/m-p/465561#M24242</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-05-29T01:22:58Z</dc:date>
    </item>
  </channel>
</rss>

