<?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 IML in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Regression-in-proc-IML/m-p/900660#M6112</link>
    <description>Thank You.</description>
    <pubDate>Mon, 30 Oct 2023 12:45:20 GMT</pubDate>
    <dc:creator>Golf</dc:creator>
    <dc:date>2023-10-30T12:45:20Z</dc:date>
    <item>
      <title>Regression in proc IML</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Regression-in-proc-IML/m-p/900603#M6107</link>
      <description>&lt;P&gt;Hello,&amp;nbsp; I have a model;&lt;BR /&gt;Y = b0+ b1X1+b2X2 + u&lt;BR /&gt;I want to use proc IML to create a column vector:&lt;BR /&gt;[beta] = [1 -b0 b1 -b2]'.&amp;nbsp; &amp;nbsp; &amp;nbsp; [Dimension: 4x1]&lt;BR /&gt;I also want to create a matrix of X&lt;BR /&gt;[X ] = [Y ones X1 X2].&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [Dimension: nx4] &lt;BR /&gt;Then I calculate the vector of coint:&lt;BR /&gt;coint = [X]*[beta].&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [Dimension: nx1]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I started with the following codes;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="georgia,palatino" color="#FF6600"&gt;proc reg data = a outest = coefficients;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="georgia,palatino" color="#FF6600"&gt;model y = x1 x2;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="georgia,palatino" color="#FF6600"&gt;run;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;How can I use Proc IML to obtain the desired results?&lt;/P&gt;
&lt;P&gt;Thank You&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 10:34:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Regression-in-proc-IML/m-p/900603#M6107</guid>
      <dc:creator>Golf</dc:creator>
      <dc:date>2023-10-30T10:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: proc IML</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Regression-in-proc-IML/m-p/900617#M6108</link>
      <description>&lt;P&gt;I have moved this topic to 'SAS/IML' - board.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS/IML 14.2 User’s Guide&lt;BR /&gt;Tutorial: A Module for Linear Regression&lt;BR /&gt;A Module for Linear Regression&lt;BR /&gt;&lt;A href="https://go.documentation.sas.com/doc/en/imlcdc/14.2/imlug/imlug_tutorial_sect003.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/imlcdc/14.2/imlug/imlug_tutorial_sect003.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Home &amp;gt; Analytics &amp;gt; SAS/IML &amp;gt; Multiple linear regression using proc iml&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Multiple-linear-regression-using-proc-iml/td-p/844255" target="_blank"&gt;https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Multiple-linear-regression-using-proc-iml/td-p/844255&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR, &lt;BR /&gt;Koen&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 09:57:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Regression-in-proc-IML/m-p/900617#M6108</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-10-30T09:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: proc IML</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Regression-in-proc-IML/m-p/900624#M6109</link>
      <description>&lt;P&gt;I don't understand why there are some (but not all) minus signs in the regression coefficient, but I think this program should get you started. If you intended to use -b1, then insert it in the obvious location.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc iml;
/* use sample data */
use sashelp.class;
read all var "Weight" into Y;
read all var {"Height" "Age"} into XVars;

/* specify regression coefficients */
b0 = 13;
b1 = 9;
b2 = 5;

/* [beta] = [1 -b0 b1 -b2]'.      [Dimension: 4x1] */
beta = 1 // -b0 // b1 // -b2;

/* [X ] = [Y ones X1 X2].          [Dimension: nx4] */
ones = j(nrow(Y), 1, 1);
X = Y || ones || XVars;
coint = X*beta;
print Y coint;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 10:51:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Regression-in-proc-IML/m-p/900624#M6109</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2023-10-30T10:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: proc IML</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Regression-in-proc-IML/m-p/900659#M6111</link>
      <description>&lt;P&gt;Thank You.&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 12:45:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Regression-in-proc-IML/m-p/900659#M6111</guid>
      <dc:creator>Golf</dc:creator>
      <dc:date>2023-10-30T12:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: proc IML</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Regression-in-proc-IML/m-p/900660#M6112</link>
      <description>Thank You.</description>
      <pubDate>Mon, 30 Oct 2023 12:45:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Regression-in-proc-IML/m-p/900660#M6112</guid>
      <dc:creator>Golf</dc:creator>
      <dc:date>2023-10-30T12:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: proc IML</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Regression-in-proc-IML/m-p/911387#M6165</link>
      <description>&lt;P&gt;Is there anything else we can help with? If your question is answered, please mark the solution and close this thread.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2024 14:02:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Regression-in-proc-IML/m-p/911387#M6165</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2024-01-12T14:02:29Z</dc:date>
    </item>
  </channel>
</rss>

