<?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: How to find the mean of four variables in a row using proc iml in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/How-to-find/m-p/588155#M4801</link>
    <description>&lt;P&gt;The title says "the mean of four variables IN A ROW," so I assume you want to &lt;A href="https://blogs.sas.com/content/iml/2012/05/23/compute-statistics-for-each-row-by-using-subscript-operators.html" target="_self"&gt;use the m[,:] subscript reduction operator.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The easiest way is to just extract the four variables and use the '&lt;STRONG&gt;:&lt;/STRONG&gt;' operator to compute the means:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;A = m[ , 1:4];    /* extract four columns */
f = A[ , :];      /* mean of four columns */
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Alternatively, If you don't need the e variable, you can define varNames = "a":"d" and then directly compute f=m[,:].&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Sep 2019 10:03:22 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2019-09-12T10:03:22Z</dc:date>
    <item>
      <title>How to find</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/How-to-find/m-p/588048#M4800</link>
      <description />
      <pubDate>Thu, 12 Sep 2019 15:15:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/How-to-find/m-p/588048#M4800</guid>
      <dc:creator>k93943</dc:creator>
      <dc:date>2019-09-12T15:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the mean of four variables in a row using proc iml</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/How-to-find/m-p/588155#M4801</link>
      <description>&lt;P&gt;The title says "the mean of four variables IN A ROW," so I assume you want to &lt;A href="https://blogs.sas.com/content/iml/2012/05/23/compute-statistics-for-each-row-by-using-subscript-operators.html" target="_self"&gt;use the m[,:] subscript reduction operator.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The easiest way is to just extract the four variables and use the '&lt;STRONG&gt;:&lt;/STRONG&gt;' operator to compute the means:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;A = m[ , 1:4];    /* extract four columns */
f = A[ , :];      /* mean of four columns */
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Alternatively, If you don't need the e variable, you can define varNames = "a":"d" and then directly compute f=m[,:].&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2019 10:03:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/How-to-find/m-p/588155#M4801</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-09-12T10:03:22Z</dc:date>
    </item>
  </channel>
</rss>

