<?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: Industry dummy errors in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Industry-dummy-errors/m-p/684031#M207239</link>
    <description>&lt;P&gt;Well, I am stumped, and there's something wrong here. This code (using a smaller data set) runs almost instantly, doesn't cause a freeze. Even with your data set of 40,000 records, similar code ought to run quickly (although not instantly) and I can't understand why your SAS freezes.&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=sashelp.cars;
    class make;
	model msrp = make invoice enginesize cylinders horsepower mpg_city mpg_highway weight wheelbase length;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Why do you need the ind# in your dummy_sic2 values, anyway? Although that shouldn't make a difference, what happens if you use&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;dummy_sic2=put(sic2,z2.);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Anyway, here is another way to generate dummy variables:&amp;nbsp;&lt;A href="https://blogs.sas.com/content/iml/2020/08/31/best-generate-dummy-variables-sas.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2020/08/31/best-generate-dummy-variables-sas.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Sep 2020 18:50:56 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2020-09-15T18:50:56Z</dc:date>
    <item>
      <title>Industry dummy errors</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Industry-dummy-errors/m-p/683082#M206839</link>
      <description>&lt;P&gt;Dear Madam/Sir,&lt;/P&gt;&lt;P&gt;With the help of this community, I have created industry dummies using the following program and obtain the following variables.&lt;/P&gt;&lt;P&gt;data want;&lt;BR /&gt;set have;&lt;BR /&gt;length dummy_sic2 $ 10;&lt;BR /&gt;dummy_sic2=cats('ind#',put(sic2,z2.));&lt;BR /&gt;run;&lt;/P&gt;&lt;DIV class="branch"&gt;&lt;DIV&gt;&lt;DIV align="center"&gt;dummy_sic2 Frequency Percent CumulativeFrequency CumulativePercentind#01ind#02ind#07ind#08ind#09ind#10 &lt;TABLE cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;211&lt;/TD&gt;&lt;TD&gt;0.26&lt;/TD&gt;&lt;TD&gt;211&lt;/TD&gt;&lt;TD&gt;0.26&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;49&lt;/TD&gt;&lt;TD&gt;0.06&lt;/TD&gt;&lt;TD&gt;260&lt;/TD&gt;&lt;TD&gt;0.33&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;61&lt;/TD&gt;&lt;TD&gt;0.08&lt;/TD&gt;&lt;TD&gt;321&lt;/TD&gt;&lt;TD&gt;0.40&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;TD&gt;0.04&lt;/TD&gt;&lt;TD&gt;351&lt;/TD&gt;&lt;TD&gt;0.44&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;0.00&lt;/TD&gt;&lt;TD&gt;354&lt;/TD&gt;&lt;TD&gt;0.44&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;971&lt;/TD&gt;&lt;TD&gt;1.22&lt;/TD&gt;&lt;TD&gt;1325&lt;/TD&gt;&lt;TD&gt;1.66&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I have the following error message in the regressions.&lt;/P&gt;&lt;P&gt;ERROR: Variable dummy_sic2 should be either numeric or specified in the CLASS statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It will be highly appreciative if you can advise how to convert 'dummy_sic2' into numeric data or other data form that can be included as industry dummies in the regressions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;&lt;P&gt;Joon1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 21:35:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Industry-dummy-errors/m-p/683082#M206839</guid>
      <dc:creator>joon1</dc:creator>
      <dc:date>2020-09-10T21:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: Industry dummy errors</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Industry-dummy-errors/m-p/683105#M206860</link>
      <description>&lt;P&gt;You don't show what regression you ran. Likely the approach would be to add:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Class dummy_sic2;&lt;/P&gt;
&lt;P&gt;to the regression code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 22:17:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Industry-dummy-errors/m-p/683105#M206860</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-09-10T22:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: Industry dummy errors</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Industry-dummy-errors/m-p/683121#M206873</link>
      <description>&lt;P&gt;Thanks for your quick reply, ballardw.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The original error message is as follows:&lt;/P&gt;&lt;P&gt;proc surveyreg data=m20;&lt;BR /&gt;cluster gvkey;&lt;BR /&gt;model ln_audit = sdd1 sstmat leverage sodebt cspec ln_nonaudit icw restatement gc auchange&lt;BR /&gt;&amp;nbsp;merger financing yearend&amp;nbsp;&amp;nbsp;ln_at mb big4 roa loss fsalepro sq_segs ar_in special_item ln_tenure&lt;BR /&gt;1704! y2000-y2016&amp;nbsp; dummy_sic2; run;&lt;BR /&gt;ERROR: Variable dummy_sic2 should be either numeric or specified in the CLASS statement.&lt;BR /&gt;NOTE: The previous statement has been deleted.&lt;/P&gt;&lt;P&gt;ERROR: No MODEL statement.&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The use of "class" in the regression statement has the following error message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;proc surveyreg data=m20;&lt;BR /&gt;&amp;nbsp;cluster gvkey;&lt;BR /&gt;&amp;nbsp;model ln_audit = sdd1 sstmat leverage sodebt cspec ln_nonaudit icw restatement gc auchange&lt;BR /&gt;&amp;nbsp;merger financing yearend&amp;nbsp;ln_at mb big4 roa loss fsalepro sq_segs ar_in special_item ln_tenure&lt;BR /&gt;y2000-y2016 Class dummy_sic2; run;&lt;BR /&gt;ERROR: Variable Class not found.&lt;BR /&gt;NOTE: The previous statement has been deleted.&lt;/P&gt;&lt;P&gt;ERROR: No MODEL statement.&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE SURVEYREG used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;cpu time 0.03 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help will be highly appreciated.&lt;/P&gt;&lt;P&gt;Joon1&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 23:57:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Industry-dummy-errors/m-p/683121#M206873</guid>
      <dc:creator>joon1</dc:creator>
      <dc:date>2020-09-10T23:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: Industry dummy errors</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Industry-dummy-errors/m-p/683129#M206879</link>
      <description>&lt;P&gt;Look carefully at &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt; 's suggestion.&amp;nbsp;&amp;nbsp; It is a class STATEMENT (note the trailing semi-colon), not a suggestion to insert the word "class" into the model statement.&amp;nbsp; Use the original model statement, and add a separate&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; class dummy_sic2;&lt;/P&gt;
&lt;P&gt;statement.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2020 00:57:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Industry-dummy-errors/m-p/683129#M206879</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2020-09-11T00:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: Industry dummy errors</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Industry-dummy-errors/m-p/683142#M206887</link>
      <description>&lt;P&gt;Thanks, mkeinz, for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, the sas output does not provide t-table. Is there any way to generate dummy variables that is can be included in the regressions like numerical variables (ind#1-ind#99). Thank you.&lt;/P&gt;&lt;DIV class="branch"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="branch"&gt;&lt;TABLE border="0" cellspacing="1" cellpadding="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;The SAS System&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;DIV class="c proctitle"&gt;The SURVEYREG Procedure&lt;/DIV&gt;&lt;DIV class="c proctitle"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="c proctitle"&gt;Regression Analysis for Dependent Variable ln_audit&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV align="center"&gt;Data SummaryNumber of ObservationsMean of ln_auditSum of ln_audit &lt;TABLE cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;48299&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;13.29416&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;642094.6&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV align="center"&gt;Design SummaryNumber of Clusters &lt;TABLE cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;7158&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV align="center"&gt;Fit StatisticsR-SquareRoot MSEDenominator DF &lt;TABLE cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;0.8724&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0.5177&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;7157&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV align="center"&gt;Class Level InformationCLASS Variable Levels Valuesdummy_sic2 &lt;TABLE cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;65&lt;/TD&gt;&lt;TD&gt;ind#01 ind#02 ind#07 ind#08 ind#09 ind#10 ind#12 ind#13 ind#14 ind#15 ind#16 ind#17 ind#20 ind#21 ind#22 ind#23 ind#24 ind#25 ind#26 ind#27 ind#28 ind#29 ind#30 ind#31 ind#32 ind#33 ind#34 ind#35 ind#36 ind#37 ind#38 ind#39 ind#40 ind#41 ind#42 ind#44 ind#45 ind#46 ind#47 ind#48 ind#49 ind#50 ind#51 ind#52 ind#53 ind#54 ind#55 ind#56 ind#57 ind#58 ind#59 ind#70 ind#72 ind#73 ind#75 ind#76 ind#78 ind#79 ind#80 ind#81 ind#82 ind#83 ind#86 ind#87 ind#99&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV align="center"&gt;Tests of Model EffectsEffect Num DF F Value Pr&amp;nbsp;&amp;gt;&amp;nbsp;FModelInterceptsdd1sstmatleveragesodebtcspecln_nonauditicwrestatementgcauchangemergerfinancingyearendln_atmbbig4roalossfsaleproSQ_SEGSar_inspecial_itemln_tenurey2000y2001y2002y2003y2004y2005y2006y2007y2008y2009y2010y2011y2012y2013y2014y2015y2016dummy_sic2 &lt;TABLE cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;102&lt;/TD&gt;&lt;TD&gt;1033.40&lt;/TD&gt;&lt;TD&gt;&amp;lt;.0001&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;60235.1&lt;/TD&gt;&lt;TD&gt;&amp;lt;.0001&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;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ests is 7157.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 11 Sep 2020 02:24:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Industry-dummy-errors/m-p/683142#M206887</guid>
      <dc:creator>joon1</dc:creator>
      <dc:date>2020-09-11T02:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Industry dummy errors</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Industry-dummy-errors/m-p/683223#M206919</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;Unfortunately, the sas output does not provide t-table.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I think you want to add the /SOLUTION option to your MODEL statement.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;(If that does help, show us your code)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2020 11:49:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Industry-dummy-errors/m-p/683223#M206919</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-09-11T11:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: Industry dummy errors</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Industry-dummy-errors/m-p/683380#M206981</link>
      <description>&lt;P&gt;Thank you so much for Paigemiller. Your code worked well. However, this approach does not work in OLS (proc reg). Your help will be highly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc reg data=m20;&lt;BR /&gt;class dummy_sic2;&lt;BR /&gt;-----&lt;BR /&gt;180&lt;BR /&gt;&lt;U&gt;NOTE: The previous statement has been deleted.&lt;/U&gt;&lt;BR /&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;BR /&gt;model ln_audit = sdd1 sstmat leverage sodebt cspec ln_nonaudit icw restatement gc auchange&lt;BR /&gt;merger financing yearend&amp;nbsp;/*abaccrual*/ ln_at mb big4 roa loss fsalepro sq_segs ar_in special_item ln_tenure&lt;BR /&gt;y2000-y2016 dummy_sic2 /vif; run;&lt;/P&gt;&lt;P&gt;&lt;U&gt;ERROR: Variable dummy_sic2 in list does not match type prescribed for this list.&lt;/U&gt;&lt;BR /&gt;NOTE: The previous statement has been deleted.&lt;/P&gt;&lt;P&gt;WARNING: RUN statement ignored due to previous errors. Submit QUIT; to terminate the procedure.&lt;BR /&gt;NOTE: PROCEDURE REG used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Joon1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Sep 2020 00:03:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Industry-dummy-errors/m-p/683380#M206981</guid>
      <dc:creator>joon1</dc:creator>
      <dc:date>2020-09-12T00:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: Industry dummy errors</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Industry-dummy-errors/m-p/683384#M206983</link>
      <description>&lt;P&gt;Yes, it doesn't work in PROC REG, there is no CLASS statement. You need to use PROC SURVEYREG (as you were in your earlier message) or you can use PROC GLM instead of PROC REG (for regression problems, REG and GLM&amp;nbsp; are both applicable but GLM allows a class statement while REG does not).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you change PROCs in the middle of a thread, the previous advice may not apply. &lt;/P&gt;</description>
      <pubDate>Sat, 12 Sep 2020 00:44:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Industry-dummy-errors/m-p/683384#M206983</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-09-12T00:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: Industry dummy errors</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Industry-dummy-errors/m-p/683430#M207006</link>
      <description>&lt;P&gt;Thank you so much for your help, PaigeMiller. I have one more question. Is there way to show &lt;U&gt;adjusted&lt;/U&gt; R-square and variation inflation factor (/vif option in proc reg) in Surveyreg procedure or GLM procedure?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Joon1&lt;/P&gt;</description>
      <pubDate>Sat, 12 Sep 2020 11:57:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Industry-dummy-errors/m-p/683430#M207006</guid>
      <dc:creator>joon1</dc:creator>
      <dc:date>2020-09-12T11:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: Industry dummy errors</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Industry-dummy-errors/m-p/683435#M207008</link>
      <description>&lt;P&gt;PROC SURVEYREG has an ADJRSQ option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can run the continuous variables with fake Y values through PROC REG if you really want the VIF values.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Sep 2020 12:39:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Industry-dummy-errors/m-p/683435#M207008</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-09-12T12:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: Industry dummy errors</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Industry-dummy-errors/m-p/683440#M207011</link>
      <description>&lt;P&gt;Thank you so much for your quick reply, PaigeMiller. Is there any way to include dummy_sic2 in the proc reg procedure to have VIF?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;proc reg data=m20;&lt;BR /&gt;NOTE: Writing HTML Body file: sashtml1.htm&lt;BR /&gt;model ln_audit = sdd1 sstmat leverage sodebt cspec ln_nonaudit icw restatement gc auchange&lt;BR /&gt;merger financing yearend&amp;nbsp;ln_at mb big4 roa loss fsalepro sq_segs ar_in special_item ln_tenure&amp;nbsp;&amp;nbsp;y2000-y2016 dummy_sic2 /vif; run;&lt;BR /&gt;ERROR: Variable dummy_sic2 in list does not match type prescribed for this list.&lt;BR /&gt;NOTE: The previous statement has been deleted.&lt;/P&gt;&lt;P&gt;WARNING: No variables specified for an SSCP matrix. Execution terminating.&lt;BR /&gt;NOTE: PROCEDURE REG used (Total process time):&lt;BR /&gt;real time 0.52 seconds&lt;BR /&gt;cpu time 0.17 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Joon1&lt;/P&gt;</description>
      <pubDate>Sat, 12 Sep 2020 14:33:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Industry-dummy-errors/m-p/683440#M207011</guid>
      <dc:creator>joon1</dc:creator>
      <dc:date>2020-09-12T14:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: Industry dummy errors</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Industry-dummy-errors/m-p/683448#M207013</link>
      <description>&lt;P&gt;There's no way to get VIF on categorical variables in PROC REG, unless you create the dummy variables somehow and run that through PROC REG.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you asbolutely have to do the work to create dummy variables, the easiest way to do this is to use PROC GLMMOD with a CLASS statement to obtain the dummy variables for the class variable, and also all the continuous variables, into a SAS data set which can then be run through PROC REG to get the VIFs. Example: &lt;A href="https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_glmmod_examples02.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_glmmod_examples02.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Sep 2020 16:51:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Industry-dummy-errors/m-p/683448#M207013</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-09-12T16:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: Industry dummy errors</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Industry-dummy-errors/m-p/683459#M207020</link>
      <description>&lt;P&gt;Thanks for your information, PaigeMiller.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I run glm procedure and make sas dataset "m21" using output statement below (output out=m21), but dummy variables are not created in the dataset "m21". I have an error message in the proc reg procedure. It will be grateful if you can advise how to save dummy variables in&amp;nbsp; a SAS dataset and run proc reg.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;proc glm data=m20;&lt;BR /&gt;class dummy_sic2;&lt;BR /&gt;model ln_audit = sdd1 sstmat leverage sodebt cspec ln_nonaudit icw restatement gc auchange&lt;BR /&gt;merger financing yearend&amp;nbsp;ln_at mb big4 roa loss fsalepro sq_segs ar_in special_item ln_tenure&lt;BR /&gt;297! y2000-y2016 dummy_sic2/solution;&lt;BR /&gt;&lt;U&gt;output out=m21;&lt;/U&gt;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.M21 has 46854 observations and 240 variables.&lt;BR /&gt;NOTE: PROCEDURE GLM used (Total process time):&lt;BR /&gt;real time 17.47 seconds&lt;BR /&gt;cpu time 2.50 seconds&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;proc reg data=m21;&lt;BR /&gt;&amp;nbsp;model ln_audit = sdd1 sstmat leverage sodebt cspec ln_nonaudit icw restatement gc auchange&lt;BR /&gt;&amp;nbsp;merger financing yearend&amp;nbsp;&amp;nbsp;ln_at mb big4 roa loss fsalepro sq_segs ar_in special_item ln_tenure&lt;BR /&gt;&amp;nbsp;y2000-y2016 dummy_sic2 /vif; run;&amp;nbsp;&lt;BR /&gt;ERROR: Variable dummy_sic2 in list does not match type prescribed for this list.&lt;BR /&gt;NOTE: The previous statement has been deleted.&lt;/P&gt;&lt;P&gt;WARNING: No variables specified for an SSCP matrix. Execution terminating.&lt;BR /&gt;NOTE: PROCEDURE REG used (Total process time):&lt;BR /&gt;real time 0.03 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Joon1&lt;/P&gt;</description>
      <pubDate>Sat, 12 Sep 2020 18:50:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Industry-dummy-errors/m-p/683459#M207020</guid>
      <dc:creator>joon1</dc:creator>
      <dc:date>2020-09-12T18:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: Industry dummy errors</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Industry-dummy-errors/m-p/683466#M207022</link>
      <description>&lt;P&gt;Please read carefully. I said PROC &lt;FONT color="#FF0000"&gt;GLMMOD&lt;/FONT&gt;.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Sep 2020 20:27:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Industry-dummy-errors/m-p/683466#M207022</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-09-12T20:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Industry dummy errors</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Industry-dummy-errors/m-p/683484#M207033</link>
      <description>&lt;P&gt;Thanks for your kind reply, PaigeMiller.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I create the sas file that contains industry dummies?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"output out=m21" does not work in GLMMOD procedure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Joon1&lt;/P&gt;</description>
      <pubDate>Sun, 13 Sep 2020 02:28:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Industry-dummy-errors/m-p/683484#M207033</guid>
      <dc:creator>joon1</dc:creator>
      <dc:date>2020-09-13T02:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: Industry dummy errors</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Industry-dummy-errors/m-p/683501#M207044</link>
      <description>&lt;P&gt;I gave a link to an example using PROC GLMMOD which produces the desired output data set.&lt;/P&gt;</description>
      <pubDate>Sun, 13 Sep 2020 08:32:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Industry-dummy-errors/m-p/683501#M207044</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-09-13T08:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: Industry dummy errors</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Industry-dummy-errors/m-p/683529#M207054</link>
      <description>&lt;P&gt;Thanks for your kind reply. However, proc glmmod procedure stops the SAS program several times. Is there any easy way to convert the character variable below to dummy variables in the current sas dataset? Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="branch"&gt;&lt;DIV&gt;&lt;DIV align="center"&gt;dummy_sic2 Frequency Percent CumulativeFrequency CumulativePercentind#01ind#02ind#07ind#08 &lt;TABLE cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;16&lt;/TD&gt;&lt;TD&gt;0.11&lt;/TD&gt;&lt;TD&gt;16&lt;/TD&gt;&lt;TD&gt;0.11&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;0.01&lt;/TD&gt;&lt;TD&gt;18&lt;/TD&gt;&lt;TD&gt;0.13&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;0.01&lt;/TD&gt;&lt;TD&gt;19&lt;/TD&gt;&lt;TD&gt;0.14&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;0.01&lt;/TD&gt;&lt;TD&gt;21&lt;/TD&gt;&lt;TD&gt;0.15&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 13 Sep 2020 19:16:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Industry-dummy-errors/m-p/683529#M207054</guid>
      <dc:creator>joon1</dc:creator>
      <dc:date>2020-09-13T19:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: Industry dummy errors</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Industry-dummy-errors/m-p/683533#M207056</link>
      <description>&lt;P&gt;The easiest way is PROC GLM MOD. Show us the ENTIRE log for the PROC GLM MOD step.&lt;/P&gt;</description>
      <pubDate>Sun, 13 Sep 2020 20:21:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Industry-dummy-errors/m-p/683533#M207056</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-09-13T20:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: Industry dummy errors</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Industry-dummy-errors/m-p/683547#M207062</link>
      <description>&lt;P&gt;When I run the following program, the whole SAS program stops without saving.&lt;BR /&gt;ods output out=m21;&lt;BR /&gt;proc glmmod data=m20;&lt;BR /&gt;model ln_audit = sdd1 sstmat leverage sodebt cspec ln_nonaudit icw restatement gc auchange merger financing yearend&lt;BR /&gt;ln_at mb big4 roa loss fsalepro sq_segs ar_in special_item ln_tenure y2000-y2016 dummy_sic2; run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Joon1&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2020 02:35:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Industry-dummy-errors/m-p/683547#M207062</guid>
      <dc:creator>joon1</dc:creator>
      <dc:date>2020-09-14T02:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: Industry dummy errors</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Industry-dummy-errors/m-p/683613#M207082</link>
      <description>&lt;P&gt;I don't see this command (copied exactly from the example)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods output DesignPoints = DesignMatrix;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Also, from now on, we request that when you need to show us the code you are using, please click on the "little running man" icon and paste your code into the window that appears.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2020 10:52:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Industry-dummy-errors/m-p/683613#M207082</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-09-14T10:52:24Z</dc:date>
    </item>
  </channel>
</rss>

