<?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: Multiple linear regression using proc iml in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Multiple-linear-regression-using-proc-iml/m-p/844461#M5907</link>
    <description>&lt;P&gt;Almost correct. Use the syntax you were previously using to assign the list:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;result = [Analysis_of_variance, Model_fit, Parameter_estimates,y,yhat,resid];&lt;/STRONG&gt; &lt;/P&gt;</description>
    <pubDate>Tue, 15 Nov 2022 19:05:08 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2022-11-15T19:05:08Z</dc:date>
    <item>
      <title>Multiple linear regression using proc iml</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Multiple-linear-regression-using-proc-iml/m-p/844255#M5887</link>
      <description>&lt;P&gt;I am trying to create a user defined function for multiple linear regression using proc iml. I am trying to create a function where I can input any SAS dataset and values from dataset would be read into two matrices - x for predictors and y for outcome. The matrices would then be used in the formulas for computing estimates for linear regression. But I keep getting an error that dataset doesnt exist. Any suggestions on what is wrong with the code? Also is it possible to input varying number of predictors and still get the function to work?&lt;/P&gt;&lt;PRE&gt;proc iml; &lt;BR /&gt;start linreg(x,y);&lt;BR /&gt;use dataset;&lt;BR /&gt;read all var {'x1' 'x2' 'x3'} into x;&lt;BR /&gt;read all var {'y'} into y;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 04:33:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Multiple-linear-regression-using-proc-iml/m-p/844255#M5887</guid>
      <dc:creator>Sanjana1</dc:creator>
      <dc:date>2022-11-15T04:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple linear regression using proc iml</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Multiple-linear-regression-using-proc-iml/m-p/844260#M5889</link>
      <description>&lt;P&gt;What IML code do you intend to use to perform the regression?&amp;nbsp; It may be that you can create numerical precision issues that PROC REG avoids by default.&amp;nbsp; Why does this have to be in IML?&amp;nbsp; Are your users already using IML?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 03:40:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Multiple-linear-regression-using-proc-iml/m-p/844260#M5889</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2022-11-15T03:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple linear regression using proc iml</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Multiple-linear-regression-using-proc-iml/m-p/844270#M5891</link>
      <description>&lt;PRE&gt;proc iml; &lt;BR /&gt;start mlr(x,y);&lt;BR /&gt;use dataset;&lt;BR /&gt;read all var {'x1' 'x2' 'x3'} into x;&lt;BR /&gt;read all var {'y'} into y;&lt;BR /&gt;&lt;BR /&gt;n = nrow(x); /* number of observations */&lt;BR /&gt;m= ncol(x); /* number of variables */&lt;BR /&gt;x=j(n,1,1)||x; /* adding a column of 1 corresponding to intercept*/&lt;BR /&gt;&lt;BR /&gt;/* Compute Xinv, the inverse of X’X and the vector of coefficient estimates Beta. */&lt;BR /&gt;Computations&lt;BR /&gt;finish mlr;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;This is my code. I cannot understand what is wrong with the code. Any help would be appreciated.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 14:49:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Multiple-linear-regression-using-proc-iml/m-p/844270#M5891</guid>
      <dc:creator>Sanjana1</dc:creator>
      <dc:date>2022-11-15T14:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple linear regression using proc iml</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Multiple-linear-regression-using-proc-iml/m-p/844278#M5893</link>
      <description>I am not suggesting that there is anything mathematically wrong with your code, but there can be computational issues.&lt;BR /&gt;&lt;BR /&gt;For instance calculating the sums of squares and cross products can be exposed to numeric precision issues for large datasets.  Procedures like PROC REG often take a preliminary sample mean from the variables, then get SSCP of the "demeaned" data, and then add back the SSCP component attributable to the means, yielding a more accurate final SSCP than X'X.&lt;BR /&gt;&lt;BR /&gt;This can also happen if there are large scale differences in your variables. &lt;BR /&gt;&lt;BR /&gt;But if your dataset is not large,  you are unlikely to have such problems. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Nov 2022 04:50:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Multiple-linear-regression-using-proc-iml/m-p/844278#M5893</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2022-11-15T04:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple linear regression using proc iml</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Multiple-linear-regression-using-proc-iml/m-p/844297#M5894</link>
      <description>&lt;P&gt;You are not running any IML code here, all you are doing is defining a code module called 'mlr'.&amp;nbsp; I suggest moving the USE and the two READ statements to the end of the program, after the finish statement, and then after that call the code module using&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;run mlr(x, y);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you do this, it may work or at least give you an error that can be diagnosed.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 08:31:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Multiple-linear-regression-using-proc-iml/m-p/844297#M5894</guid>
      <dc:creator>IanWakeling</dc:creator>
      <dc:date>2022-11-15T08:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple linear regression using proc iml</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Multiple-linear-regression-using-proc-iml/m-p/844323#M5895</link>
      <description>&lt;P&gt;Ian's idea is good. If you want to pass in the NAMES of a data set and the NAMES of variables, an alternate syntax is this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc iml; 
/* INPUT:
   dsName is a string that specifies the SAS data set. Ex: "sashelp.class"
   xNames is a character vector that names the explanatory variables 
   yName is a character string that names the response variable
*/
start mlr(dsName, xNames, yName);
use (dsName);
read all var xNames into x;
read all var yName into y;
close; 

n = nrow(x); /* number of observations */
m= ncol(x); /* number of variables */
x=j(n,1,1)||x; /* adding a column of 1 corresponding to intercept*/
/* ETC. CONTINUE WITH YOUR COMPUTATIONS HERE  */
finish mlr;

run mlr("sashelp.class", {"Height" "Age"}, "Weight");
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 Nov 2022 10:56:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Multiple-linear-regression-using-proc-iml/m-p/844323#M5895</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2022-11-15T10:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple linear regression using proc iml</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Multiple-linear-regression-using-proc-iml/m-p/844343#M5896</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/437067"&gt;@Sanjana1&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I am trying to create a user defined function for multiple linear regression using proc iml. I am trying to create a function where I can input any SAS dataset and values from dataset would be read into two matrices - x for predictors and y for outcome. The matrices would then be used in the formulas for computing estimates for linear regression. But I keep getting an error that dataset doesnt exist. Any suggestions on what is wrong with the code? Also is it possible to input varying number of predictors and still get the function to work?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If you are getting errors in the log, then SHOW US the log. Simply telling us you are getting errors in the log is never sufficient.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;May I ask why you want to do this, since SAS has put all the necessary effort to do these calculation into PROC REG? If it is an attempt to learn IML, then that's fine in my opinion; if you are trying to perform real work this way, I would say use PROC REG. SAS has done the hard work to make sure PROC REG gives the correct answer, SAS has thoroughly debugged and tested PROC REG and generally people don't question the results, whereas you would have to spend a lot of time to provide the same level of confidence in your IML code. In addition, PROC REG has a gazillion useful features that your IML code doesn't have.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 12:39:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Multiple-linear-regression-using-proc-iml/m-p/844343#M5896</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-11-15T12:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple linear regression using proc iml</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Multiple-linear-regression-using-proc-iml/m-p/844391#M5898</link>
      <description>&lt;P&gt;I am trying to learn iml &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 15:14:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Multiple-linear-regression-using-proc-iml/m-p/844391#M5898</guid>
      <dc:creator>Sanjana1</dc:creator>
      <dc:date>2022-11-15T15:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple linear regression using proc iml</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Multiple-linear-regression-using-proc-iml/m-p/844400#M5899</link>
      <description>&lt;P&gt;Thanks! I modified the code but it still gives me this error. I am trying to create a function where I can input any dataset and if I call the function it would still give the output. I am confused as to what is wrong with my code.&lt;/P&gt;&lt;PRE&gt;proc iml; &lt;BR /&gt;INPUT:&lt;BR /&gt;   dsName = {dataset};&lt;BR /&gt;   xNames = {'x1' 'x2' 'x3'};&lt;BR /&gt;   yName ={'y'};&lt;BR /&gt;start mlr(dsname,xNames,yName);&lt;BR /&gt;use (dsName);&lt;BR /&gt;read all var xNames into x;&lt;BR /&gt;read all var yName into y;&lt;BR /&gt;close; &lt;BR /&gt;&lt;BR /&gt;n = nrow(x); /* number of observations */&lt;BR /&gt;m= ncol(x); /* number of variables */&lt;BR /&gt;x=j(n,1,1)||x; /* adding a column of 1 corresponding to intercept*/&lt;BR /&gt;&lt;BR /&gt;/* Compute Xinv, the inverse of X’X and the vector of coefficient estimates Beta. */&lt;BR /&gt;xinv=inv(x`*x);&lt;BR /&gt;beta= xinv*x`*y;&lt;BR /&gt;&lt;BR /&gt;finish mlr;&lt;BR /&gt;run mlr("sashelp.class", {"Height" "Age"}, "Weight");&lt;BR /&gt;quit;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sanjana1_0-1668526623559.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/77337i281E28C80D985CD2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sanjana1_0-1668526623559.png" alt="Sanjana1_0-1668526623559.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 18:53:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Multiple-linear-regression-using-proc-iml/m-p/844400#M5899</guid>
      <dc:creator>Sanjana1</dc:creator>
      <dc:date>2022-11-15T18:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple linear regression using proc iml</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Multiple-linear-regression-using-proc-iml/m-p/844402#M5900</link>
      <description>&lt;P&gt;In general, when someone posts a question to the IML Community, I think the experts should assume that the OP has a reason to want the operation in IML. There are many reasons for wanting to implement a routine that reproduces functionality that is also available in a SAS procedure. For example, linear regression might be one substep in a complicated iterative algorithm. Learning the language is another. Class programming assignments are a third.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 15:41:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Multiple-linear-regression-using-proc-iml/m-p/844402#M5900</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2022-11-15T15:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple linear regression using proc iml</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Multiple-linear-regression-using-proc-iml/m-p/844423#M5901</link>
      <description>&lt;P&gt;If you have a function module which returns a value, then you must assign the result to a variable as follows:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;r = mlr("sashelp.class", {"Height" "Age"}, "Weight");
print (r$1);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;In your code lines 2 to 5 are not doing any useful and should be removed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 17:03:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Multiple-linear-regression-using-proc-iml/m-p/844423#M5901</guid>
      <dc:creator>IanWakeling</dc:creator>
      <dc:date>2022-11-15T17:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple linear regression using proc iml</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Multiple-linear-regression-using-proc-iml/m-p/844428#M5902</link>
      <description>&lt;P&gt;Just to clarify the call you should be making to analyze you own data should be something like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;r = mlr("dataset", {"x1" "x2" "x3"}, "y");&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 Nov 2022 17:13:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Multiple-linear-regression-using-proc-iml/m-p/844428#M5902</guid>
      <dc:creator>IanWakeling</dc:creator>
      <dc:date>2022-11-15T17:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple linear regression using proc iml</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Multiple-linear-regression-using-proc-iml/m-p/844431#M5903</link>
      <description>&lt;P&gt;Thank you! It gave me a result but it only gave me the output for first matrix Analysis_of_variance. Is it possible to get results for all the matrices using return? They are in my result matrix but they didnot get output. This is the output I got.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sanjana1_0-1668532961387.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/77341i51679E20930EB926/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sanjana1_0-1668532961387.png" alt="Sanjana1_0-1668532961387.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 17:22:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Multiple-linear-regression-using-proc-iml/m-p/844431#M5903</guid>
      <dc:creator>Sanjana1</dc:creator>
      <dc:date>2022-11-15T17:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple linear regression using proc iml</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Multiple-linear-regression-using-proc-iml/m-p/844439#M5904</link>
      <description>&lt;P&gt;I tried print r to print all the components of r but it gave this error.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sanjana1_0-1668534075375.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/77343i7197DE4472E13211/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sanjana1_0-1668534075375.png" alt="Sanjana1_0-1668534075375.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 17:41:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Multiple-linear-regression-using-proc-iml/m-p/844439#M5904</guid>
      <dc:creator>Sanjana1</dc:creator>
      <dc:date>2022-11-15T17:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple linear regression using proc iml</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Multiple-linear-regression-using-proc-iml/m-p/844441#M5905</link>
      <description>&lt;P&gt;I guess you are running PROC IML at SAS 9.4. In SAS 9.4, the PRINT statement requires a matrix. To print a list, you need to load and use the ListPrint module. &lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/v_032/imlug/imlug_lists_details09.htm" target="_self"&gt;See the documentation&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In SAS Viya, the PRINT statement can print lists.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 17:50:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Multiple-linear-regression-using-proc-iml/m-p/844441#M5905</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2022-11-15T17:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple linear regression using proc iml</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Multiple-linear-regression-using-proc-iml/m-p/844456#M5906</link>
      <description>Thank you! I am new to iml and so I am having a bit trouble understanding the syntax. I looked at the documentation and modified the code accordingly but it gave me this error.&amp;amp;nbsp;&lt;BR /&gt;proc iml;&lt;BR /&gt;start mlr(dsname,xNames,yName);&lt;BR /&gt;use (dsName);&lt;BR /&gt;read all var xNames into x;&lt;BR /&gt;read all var yName into y;&lt;BR /&gt;close;&lt;BR /&gt;&lt;BR /&gt;n = nrow(x); /* number of observations */&lt;BR /&gt;m= ncol(x); /* number of variables */&lt;BR /&gt;x=j(n,1,1)||x; /* adding a column of 1 corresponding to intercept*/&lt;BR /&gt;&lt;BR /&gt;/* Compute Xinv, the inverse of X’X */&lt;BR /&gt;return ( result );&lt;BR /&gt;finish mlr;&lt;BR /&gt;&lt;BR /&gt;r = mlr("sashelp.class", {"Height" "Age"}, "Weight");&lt;BR /&gt;print r;&lt;BR /&gt;quit;&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Nov 2022 06:48:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Multiple-linear-regression-using-proc-iml/m-p/844456#M5906</guid>
      <dc:creator>Sanjana1</dc:creator>
      <dc:date>2022-11-16T06:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple linear regression using proc iml</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Multiple-linear-regression-using-proc-iml/m-p/844461#M5907</link>
      <description>&lt;P&gt;Almost correct. Use the syntax you were previously using to assign the list:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;result = [Analysis_of_variance, Model_fit, Parameter_estimates,y,yhat,resid];&lt;/STRONG&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 19:05:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Multiple-linear-regression-using-proc-iml/m-p/844461#M5907</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2022-11-15T19:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple linear regression using proc iml</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Multiple-linear-regression-using-proc-iml/m-p/844471#M5908</link>
      <description>&lt;P&gt;Thank you! I just had one more question. I understand that when we want to print results within iml we can use colname and rowname to give row and column headings. But that is not possible when we are defining a user defined function using return statement?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 19:37:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Multiple-linear-regression-using-proc-iml/m-p/844471#M5908</guid>
      <dc:creator>Sanjana1</dc:creator>
      <dc:date>2022-11-15T19:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple linear regression using proc iml</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Multiple-linear-regression-using-proc-iml/m-p/844487#M5909</link>
      <description>&lt;P&gt;If I understand your question, I believe the answer is yes. The caller would need to specify the COLNAME= and ROWNAME= options.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the purpose of the module is to display the tables, why not do the printing inside the module? Then you can use the ROWNAME= and COLNAME= options to put nice headers on the output. This is the approach used by &lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/imlug/imlug_tutorial_sect003.htm" target="_self"&gt;the regression module in the SAS/IML Getting Started example,&lt;/A&gt;&amp;nbsp;which is very similar to your module.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 20:25:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Multiple-linear-regression-using-proc-iml/m-p/844487#M5909</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2022-11-15T20:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple linear regression using proc iml</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Multiple-linear-regression-using-proc-iml/m-p/844490#M5910</link>
      <description>&lt;P&gt;Thank you! I modified my code and it worked. I appreciate all the help from the forum.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 20:48:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Multiple-linear-regression-using-proc-iml/m-p/844490#M5910</guid>
      <dc:creator>Sanjana1</dc:creator>
      <dc:date>2022-11-15T20:48:44Z</dc:date>
    </item>
  </channel>
</rss>

