<?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 do I use proc means for multiple data sets in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/how-do-I-use-proc-means-for-multiple-data-sets/m-p/434630#M68908</link>
    <description>&lt;P&gt;Concatenate the 5 datasets into one, using PROC APPEND, or a datastep.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then run PROC MEANS using the BY statement to create analyses for each year.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the future, do not break these data sets up by years, keep them together.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 06 Feb 2018 18:13:37 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2018-02-06T18:13:37Z</dc:date>
    <item>
      <title>how do I use proc means for multiple data sets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-do-I-use-proc-means-for-multiple-data-sets/m-p/434628#M68907</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to SAS studio (3.4) and having some issues understanding how to use proc means for several data sets or if this is possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 5 SAS data sets in my library (different years of data for the same variables).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to conduct proc means for a few continuous variables for each data set and output it in a way that shows each variable's descriptive stats (N, Mean, Median, 10th and 90th percentile, max, min) by year (each data set).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any advice would be much appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2018 18:10:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-do-I-use-proc-means-for-multiple-data-sets/m-p/434628#M68907</guid>
      <dc:creator>kthartma</dc:creator>
      <dc:date>2018-02-06T18:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: how do I use proc means for multiple data sets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-do-I-use-proc-means-for-multiple-data-sets/m-p/434630#M68908</link>
      <description>&lt;P&gt;Concatenate the 5 datasets into one, using PROC APPEND, or a datastep.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then run PROC MEANS using the BY statement to create analyses for each year.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the future, do not break these data sets up by years, keep them together.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2018 18:13:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-do-I-use-proc-means-for-multiple-data-sets/m-p/434630#M68908</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-02-06T18:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: how do I use proc means for multiple data sets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-do-I-use-proc-means-for-multiple-data-sets/m-p/434632#M68909</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/190055"&gt;@kthartma&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am new to SAS studio (3.4) and having some issues understanding how to use proc means for several data sets or if this is possible.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have 5 SAS data sets in my library (different years of data for the same variables).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to conduct proc means for a few continuous variables for each data set and output it in a way that shows each variable's descriptive stats (N, Mean, Median, 10th and 90th percentile, max, min) by year (each data set).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any advice would be much appreciated.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;It's not good design to keep your data separated like that. The suggestion to combine the data is correct and then you can run PROC MEANS with a CLASS or BY statement to summarize it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are some examples:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/statgeek/SAS-Tutorials/blob/master/proc_means_basic.sas" target="_blank"&gt;https://github.com/statgeek/SAS-Tutorials/blob/master/proc_means_basic.sas&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://video.sas.com/detail/videos/sas-analytics-u/video/3306906230001/summary-statistics-using-sas-studio?autoStart=true&amp;amp;page=1" target="_blank"&gt;http://video.sas.com/detail/videos/sas-analytics-u/video/3306906230001/summary-statistics-using-sas-studio?autoStart=true&amp;amp;page=1&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2018 18:21:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-do-I-use-proc-means-for-multiple-data-sets/m-p/434632#M68909</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-02-06T18:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: how do I use proc means for multiple data sets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-do-I-use-proc-means-for-multiple-data-sets/m-p/434648#M68910</link>
      <description>Thank you for the guidance!</description>
      <pubDate>Tue, 06 Feb 2018 18:50:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-do-I-use-proc-means-for-multiple-data-sets/m-p/434648#M68910</guid>
      <dc:creator>kthartma</dc:creator>
      <dc:date>2018-02-06T18:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: how do I use proc means for multiple data sets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-do-I-use-proc-means-for-multiple-data-sets/m-p/434649#M68911</link>
      <description>Thank you for the insight and links!</description>
      <pubDate>Tue, 06 Feb 2018 18:50:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-do-I-use-proc-means-for-multiple-data-sets/m-p/434649#M68911</guid>
      <dc:creator>kthartma</dc:creator>
      <dc:date>2018-02-06T18:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: how do I use proc means for multiple data sets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-do-I-use-proc-means-for-multiple-data-sets/m-p/547445#M74375</link>
      <description>&lt;P&gt;How would you use a class statement for two datasets? Please could you include a short example.&amp;nbsp;I looked at the links but there were only examples with the by statement.&lt;/P&gt;</description>
      <pubDate>Sat, 30 Mar 2019 22:17:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-do-I-use-proc-means-for-multiple-data-sets/m-p/547445#M74375</guid>
      <dc:creator>cheenaChuks</dc:creator>
      <dc:date>2019-03-30T22:17:01Z</dc:date>
    </item>
  </channel>
</rss>

