<?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: Generate the output of a regression in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Generate-the-output-of-a-regression/m-p/641225#M30661</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/323613"&gt;@Mathis1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can add the predicted option to the output statement:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glm data=have;
   class x1 x2 ...;&lt;BR /&gt;   model y = x1 x2 ... / solution;
   output out=want predicted=predicted_varname;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Best,&lt;/P&gt;</description>
    <pubDate>Mon, 20 Apr 2020 09:38:10 GMT</pubDate>
    <dc:creator>ed_sas_member</dc:creator>
    <dc:date>2020-04-20T09:38:10Z</dc:date>
    <item>
      <title>Generate the output of a regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Generate-the-output-of-a-regression/m-p/641224#M30660</link>
      <description>&lt;P&gt;Hello !&lt;/P&gt;&lt;P&gt;I have a table with multiple categorical variables in input and a continuous variable in output. I ran a Proc glm on this table, which gives me coefficients for all the modalities. Now i'm trying to "apply" all those coefficients to my real observations and add a column "regression output" to my table that gives me the "predicted" output for every observation. So I can compare the real output and the predicted one.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2020 09:24:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Generate-the-output-of-a-regression/m-p/641224#M30660</guid>
      <dc:creator>Mathis1</dc:creator>
      <dc:date>2020-04-20T09:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: Generate the output of a regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Generate-the-output-of-a-regression/m-p/641225#M30661</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/323613"&gt;@Mathis1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can add the predicted option to the output statement:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glm data=have;
   class x1 x2 ...;&lt;BR /&gt;   model y = x1 x2 ... / solution;
   output out=want predicted=predicted_varname;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Best,&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2020 09:38:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Generate-the-output-of-a-regression/m-p/641225#M30661</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2020-04-20T09:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: Generate the output of a regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Generate-the-output-of-a-regression/m-p/641255#M30662</link>
      <description>&lt;P&gt;Adding to the already correct solution ... you may want&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;output out=want predicted=predicted_varname residual=residual_varname;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 20 Apr 2020 11:07:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Generate-the-output-of-a-regression/m-p/641255#M30662</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-04-20T11:07:10Z</dc:date>
    </item>
  </channel>
</rss>

