<?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 Bug when predicting values with PROC GLM in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Bug-when-predicting-values-with-PROC-GLM/m-p/501444#M25831</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I performed a regression with proc GLM using these commands (the dataset is attached):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc glm data=act.taux_activite;&lt;BR /&gt;class education(ref='Aucun') region(ref='NIAME') sexe(ref='Masculin') grage(ref='30_34');&lt;BR /&gt;model logittaux = grage education region sexe grage*sexe grage*education/solution;&lt;BR /&gt;output out=test predicted=plogittaux;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want predicted values, so I added the statement output out=test predicted=plogittaux;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I manage to have parameters, but for I reason I don't get, the procedure keeps running, and the output dataset "test" is never created.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is something wrong with my codes?&lt;/P&gt;</description>
    <pubDate>Thu, 04 Oct 2018 12:32:55 GMT</pubDate>
    <dc:creator>Demographer</dc:creator>
    <dc:date>2018-10-04T12:32:55Z</dc:date>
    <item>
      <title>Bug when predicting values with PROC GLM</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Bug-when-predicting-values-with-PROC-GLM/m-p/501444#M25831</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I performed a regression with proc GLM using these commands (the dataset is attached):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc glm data=act.taux_activite;&lt;BR /&gt;class education(ref='Aucun') region(ref='NIAME') sexe(ref='Masculin') grage(ref='30_34');&lt;BR /&gt;model logittaux = grage education region sexe grage*sexe grage*education/solution;&lt;BR /&gt;output out=test predicted=plogittaux;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want predicted values, so I added the statement output out=test predicted=plogittaux;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I manage to have parameters, but for I reason I don't get, the procedure keeps running, and the output dataset "test" is never created.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is something wrong with my codes?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2018 12:32:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Bug-when-predicting-values-with-PROC-GLM/m-p/501444#M25831</guid>
      <dc:creator>Demographer</dc:creator>
      <dc:date>2018-10-04T12:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: Bug when predicting values with PROC GLM</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Bug-when-predicting-values-with-PROC-GLM/m-p/501456#M25833</link>
      <description>&lt;P&gt;GLM is an interactive procedure and needs a quit; statement to end. Your code does not have that, so it might be that your procedure stays active.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EG usually takes care of that by issuing the "magic" sequence designed to end everything for good:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;;*';*";*/;quit;run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I ran your code with the data in datalines, and immediately got this log:&lt;/P&gt;
&lt;PRE&gt;27         data taux_activite;
28         infile datalines dlm=',' truncover;
29         input Region :$5. grage :$5. Sexe :$10. education :$10. taux logittaux;
30         datalines;

NOTE: The data set WORK.TAUX_ACTIVITE has 832 observations and 6 variables.
NOTE: DATA statement used (Total process time):
      real time           0.01 seconds
      cpu time            0.01 seconds
      
863        ;

864        run;
865        
866        proc glm data=taux_activite;
867        class education(ref='Aucun') region(ref='NIAME') sexe(ref='Masculin') grage(ref='30_34');
868        model logittaux = grage education region sexe grage*sexe grage*education/solution;
869        output out=test predicted=plogittaux;
870        run;

871        quit;

NOTE: The data set WORK.TEST has 832 observations and 7 variables.
NOTE: The PROCEDURE GLM printed pages 1-4.
NOTE: PROCEDURE GLM used (Total process time):
      real time           0.08 seconds
      cpu time            0.03 seconds
      
&lt;/PRE&gt;
&lt;P&gt;and got control back with a properly finished procedure.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2018 13:10:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Bug-when-predicting-values-with-PROC-GLM/m-p/501456#M25833</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-10-04T13:10:40Z</dc:date>
    </item>
  </channel>
</rss>

