<?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: calculating mean of variable across observations in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/calculating-mean-of-variable-across-observations/m-p/671779#M201779</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc summary data=have nway;
     class exam_time_card;
     var var1 var2 var3;
     output out=_means_ mean=/autoname;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 23 Jul 2020 11:56:58 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2020-07-23T11:56:58Z</dc:date>
    <item>
      <title>calculating mean of variable across observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/calculating-mean-of-variable-across-observations/m-p/671778#M201778</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a dataset, where i need to calculate the mean of all the variables across x observations.&lt;/P&gt;&lt;P&gt;Every person can have several card_times per exam_time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My dataset looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; exam_time card_time id var1 var2 var3&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;4&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to calculate the mean of var1 var2 var3 with the same exam_time creating a new dataset containing only the mean of the variables = one line per exam time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2020 11:50:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/calculating-mean-of-variable-across-observations/m-p/671778#M201778</guid>
      <dc:creator>lone0708</dc:creator>
      <dc:date>2020-07-23T11:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: calculating mean of variable across observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/calculating-mean-of-variable-across-observations/m-p/671779#M201779</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc summary data=have nway;
     class exam_time_card;
     var var1 var2 var3;
     output out=_means_ mean=/autoname;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 23 Jul 2020 11:56:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/calculating-mean-of-variable-across-observations/m-p/671779#M201779</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-07-23T11:56:58Z</dc:date>
    </item>
  </channel>
</rss>

