<?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 for 5 number summary in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-MEANS-for-5-number-summary/m-p/516502#M139502</link>
    <description>&lt;P&gt;I am looking at a data set about football players. After I read in the data set, I am trying to calculate the 5-number summary for the passYD variable for only players who position in qb. I want to do this separately for each value of team. This is the code I have been trying&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;DATA NFL;&lt;BR /&gt;FILENAME webpage URL 'http://people.stat.sc.edu/hitchcock/nfl_season_data.txt';&lt;BR /&gt;infile webpage DLM=',' DSD;&lt;BR /&gt;INPUT idcode $ lastname :$20. firstname :$20. year team $ position $ G GS COMP ATT &lt;BR /&gt;PassYD PassTD INT rush rushYD rushTD rec recYD recTD;&lt;BR /&gt;RUN;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;PROC MEANS=PassYD;&lt;BR /&gt;WHERE position=qb;&lt;BR /&gt;BY team;&lt;BR /&gt;RUN;&lt;/PRE&gt;</description>
    <pubDate>Tue, 27 Nov 2018 22:04:32 GMT</pubDate>
    <dc:creator>Steelersgirl</dc:creator>
    <dc:date>2018-11-27T22:04:32Z</dc:date>
    <item>
      <title>PROC MEANS for 5 number summary</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-MEANS-for-5-number-summary/m-p/516502#M139502</link>
      <description>&lt;P&gt;I am looking at a data set about football players. After I read in the data set, I am trying to calculate the 5-number summary for the passYD variable for only players who position in qb. I want to do this separately for each value of team. This is the code I have been trying&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;DATA NFL;&lt;BR /&gt;FILENAME webpage URL 'http://people.stat.sc.edu/hitchcock/nfl_season_data.txt';&lt;BR /&gt;infile webpage DLM=',' DSD;&lt;BR /&gt;INPUT idcode $ lastname :$20. firstname :$20. year team $ position $ G GS COMP ATT &lt;BR /&gt;PassYD PassTD INT rush rushYD rushTD rec recYD recTD;&lt;BR /&gt;RUN;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;PROC MEANS=PassYD;&lt;BR /&gt;WHERE position=qb;&lt;BR /&gt;BY team;&lt;BR /&gt;RUN;&lt;/PRE&gt;</description>
      <pubDate>Tue, 27 Nov 2018 22:04:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-MEANS-for-5-number-summary/m-p/516502#M139502</guid>
      <dc:creator>Steelersgirl</dc:creator>
      <dc:date>2018-11-27T22:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MEANS for 5 number summary</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-MEANS-for-5-number-summary/m-p/516504#M139504</link>
      <description>&lt;P&gt;What results does the code give?&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;qd&lt;/STRONG&gt; is not a variable is it? it's a value so must be quoted.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 22:11:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-MEANS-for-5-number-summary/m-p/516504#M139504</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-11-27T22:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MEANS for 5 number summary</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-MEANS-for-5-number-summary/m-p/516516#M139510</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/243060"&gt;@Steelersgirl&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I am looking at a data set about football players. After I read in the data set, I am trying to calculate the 5-number summary for the passYD variable for only players who position in qb. I want to do this separately for each value of team. This is the code I have been trying&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;DATA NFL;&lt;BR /&gt;FILENAME webpage URL 'http://people.stat.sc.edu/hitchcock/nfl_season_data.txt';&lt;BR /&gt;infile webpage DLM=',' DSD;&lt;BR /&gt;INPUT idcode $ lastname :$20. firstname :$20. year team $ position $ G GS COMP ATT &lt;BR /&gt;PassYD PassTD INT rush rushYD rushTD rec recYD recTD;&lt;BR /&gt;RUN;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;PROC MEANS=PassYD;&lt;BR /&gt;WHERE position=qb;&lt;BR /&gt;BY team;&lt;BR /&gt;RUN;&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You can specify the statistics desired in the PROC MEANS statement.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You'll also likely want to capture the output into a data set.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;PROC MEANS &lt;FONT size="5" color="#FF0000"&gt;&lt;STRONG&gt;DATA=NFL&lt;/STRONG&gt;&lt;/FONT&gt; N Mean MEdian MIN MAX STD;&lt;STRONG&gt; *list statistics here;&lt;/STRONG&gt;

WHERE position='qb'; &lt;STRONG&gt;*note that this is case sensitive;&lt;/STRONG&gt;

BY team;

&lt;FONT size="5" color="#FF0000"&gt;&lt;STRONG&gt;var varName; *list your variable to analyze here ;&lt;/STRONG&gt;

&lt;STRONG&gt;ods output summary = want; *store results;&lt;/STRONG&gt;&lt;/FONT&gt;
RUN;&lt;/PRE&gt;
&lt;P&gt;Hope that helps.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 22:50:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-MEANS-for-5-number-summary/m-p/516516#M139510</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-11-27T22:50:08Z</dc:date>
    </item>
  </channel>
</rss>

