<?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 proc means in macro in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-means-in-macro/m-p/350663#M273667</link>
    <description>&lt;P&gt;I am new to SAS programming, especially the macro programming aspect. I am having trouble creating a macro for this data set. Basically I want to get the means for&amp;nbsp;x1 or x2 for females and y1 or y2 for males.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data xx;&lt;BR /&gt;input gender $ x1 x2 y1 y2;&lt;BR /&gt;datalines;&lt;BR /&gt;male . . 14 15&lt;BR /&gt;male . . 17 18&lt;BR /&gt;female 21 22 . .&lt;BR /&gt;female 25 26 . .&lt;BR /&gt;;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions or input would be great&lt;/P&gt;</description>
    <pubDate>Mon, 17 Apr 2017 22:07:50 GMT</pubDate>
    <dc:creator>IsoscelesKramer</dc:creator>
    <dc:date>2017-04-17T22:07:50Z</dc:date>
    <item>
      <title>proc means in macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-means-in-macro/m-p/350663#M273667</link>
      <description>&lt;P&gt;I am new to SAS programming, especially the macro programming aspect. I am having trouble creating a macro for this data set. Basically I want to get the means for&amp;nbsp;x1 or x2 for females and y1 or y2 for males.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data xx;&lt;BR /&gt;input gender $ x1 x2 y1 y2;&lt;BR /&gt;datalines;&lt;BR /&gt;male . . 14 15&lt;BR /&gt;male . . 17 18&lt;BR /&gt;female 21 22 . .&lt;BR /&gt;female 25 26 . .&lt;BR /&gt;;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions or input would be great&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2017 22:07:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-means-in-macro/m-p/350663#M273667</guid>
      <dc:creator>IsoscelesKramer</dc:creator>
      <dc:date>2017-04-17T22:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: proc means in macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-means-in-macro/m-p/350666#M273668</link>
      <description>&lt;P&gt;Not sure what macro has to do wth the question.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc summary data=xx nway ;
  class gender ;
  var x1 x2 y1 y2 ;
  output out=want mean= ;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This will produce a dataset with two rows, one for males and one for females with the means of X1 , X2 , Y1 and Y2.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2017 22:21:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-means-in-macro/m-p/350666#M273668</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-04-17T22:21:15Z</dc:date>
    </item>
  </channel>
</rss>

