<?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 percentage of male  female in front row and male in front row in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/proc-freq-help/m-p/594724#M8122</link>
    <description>&lt;P&gt;hi everyone,&lt;/P&gt;&lt;P&gt;i need help with these&lt;/P&gt;&lt;P&gt;1) how do i get the freq for just the front row.this is what i did&lt;/P&gt;&lt;PRE&gt;proc freq data=merged;&lt;BR /&gt;tables seat * sex/nocum ;&lt;BR /&gt;&lt;BR /&gt;run;&lt;/PRE&gt;&lt;P&gt;2) how do i get the percentage of students that missed 0 classes,1-3 classes or more than 3 classes.&lt;/P&gt;&lt;P&gt;This is what i did;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;*Created new data set called newset to recode the missclas variable as Mclass;&lt;BR /&gt;data newset;&lt;BR /&gt;set merged;&lt;BR /&gt;if 0&amp;lt;=missclass&amp;lt;=1 then mclass='Low';&lt;BR /&gt;else if 1&amp;lt;=missclass&amp;lt;=3 then mclass='Avg';&lt;BR /&gt;else if missclass&amp;gt;3 then mclass= 'High';&lt;BR /&gt;run;&lt;BR /&gt;proc print data=newset;&lt;/P&gt;&lt;P&gt;*Percent of students that missed class using the newset data;&lt;BR /&gt;proc freq data =mclass;&lt;BR /&gt;tables mclass/ norow nocol nocum;&lt;BR /&gt;title 'Percent of students based on gender and classes Missed';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;b)i was also thinking of this;&lt;/P&gt;&lt;P&gt;proc format&lt;/P&gt;&lt;P&gt;value $mclass '0'=good&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; '1-3'=fair&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; '3+'=bad&lt;/P&gt;&lt;P&gt;proc freq&amp;nbsp; data =merged;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; table missclass;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; format missclass $mclass.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;please help;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 08 Oct 2019 12:55:20 GMT</pubDate>
    <dc:creator>pinkyloop</dc:creator>
    <dc:date>2019-10-08T12:55:20Z</dc:date>
    <item>
      <title>proc freq help</title>
      <link>https://communities.sas.com/t5/SAS-Studio/proc-freq-help/m-p/594726#M8114</link>
      <description>&lt;P&gt;hi everyone,&lt;/P&gt;&lt;P&gt;i need help with these&lt;/P&gt;&lt;P&gt;1) how do i get the freq for just the front row.this is what i did&lt;/P&gt;&lt;PRE&gt;proc freq data=merged;&lt;BR /&gt;tables seat * sex/nocum ;&lt;BR /&gt;&lt;BR /&gt;run;&lt;/PRE&gt;&lt;P&gt;2) how do i get the percentage of students that missed 0 classes,1-3 classes or more than 3 classes.&lt;/P&gt;&lt;P&gt;This is what i did;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;*Created new data set called newset to recode the missclas variable as Mclass;&lt;BR /&gt;data newset;&lt;BR /&gt;set merged;&lt;BR /&gt;if 0&amp;lt;=missclass&amp;lt;=1 then mclass='Low';&lt;BR /&gt;else if 1&amp;lt;=missclass&amp;lt;=3 then mclass='Avg';&lt;BR /&gt;else if missclass&amp;gt;3 then mclass= 'High';&lt;BR /&gt;run;&lt;BR /&gt;proc print data=newset;&lt;/P&gt;&lt;P&gt;*Percent of students that missed class using the newset data;&lt;BR /&gt;proc freq data =mclass;&lt;BR /&gt;tables mclass/ norow nocol nocum;&lt;BR /&gt;title 'Percent of students based on gender and classes Missed';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;b)i was also thinking of this;&lt;/P&gt;&lt;P&gt;proc format&lt;/P&gt;&lt;P&gt;value $mclass '0'=good&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; '1-3'=fair&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; '3+'=bad&lt;/P&gt;&lt;P&gt;proc freq&amp;nbsp; data =merged;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; table missclass;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; format missclass $mclass.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;please help;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2019 12:57:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/proc-freq-help/m-p/594726#M8114</guid>
      <dc:creator>pinkyloop</dc:creator>
      <dc:date>2019-10-08T12:57:52Z</dc:date>
    </item>
    <item>
      <title>percentage of male  female in front row and male in front row</title>
      <link>https://communities.sas.com/t5/SAS-Studio/proc-freq-help/m-p/594724#M8122</link>
      <description>&lt;P&gt;hi everyone,&lt;/P&gt;&lt;P&gt;i need help with these&lt;/P&gt;&lt;P&gt;1) how do i get the freq for just the front row.this is what i did&lt;/P&gt;&lt;PRE&gt;proc freq data=merged;&lt;BR /&gt;tables seat * sex/nocum ;&lt;BR /&gt;&lt;BR /&gt;run;&lt;/PRE&gt;&lt;P&gt;2) how do i get the percentage of students that missed 0 classes,1-3 classes or more than 3 classes.&lt;/P&gt;&lt;P&gt;This is what i did;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;*Created new data set called newset to recode the missclas variable as Mclass;&lt;BR /&gt;data newset;&lt;BR /&gt;set merged;&lt;BR /&gt;if 0&amp;lt;=missclass&amp;lt;=1 then mclass='Low';&lt;BR /&gt;else if 1&amp;lt;=missclass&amp;lt;=3 then mclass='Avg';&lt;BR /&gt;else if missclass&amp;gt;3 then mclass= 'High';&lt;BR /&gt;run;&lt;BR /&gt;proc print data=newset;&lt;/P&gt;&lt;P&gt;*Percent of students that missed class using the newset data;&lt;BR /&gt;proc freq data =mclass;&lt;BR /&gt;tables mclass/ norow nocol nocum;&lt;BR /&gt;title 'Percent of students based on gender and classes Missed';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;b)i was also thinking of this;&lt;/P&gt;&lt;P&gt;proc format&lt;/P&gt;&lt;P&gt;value $mclass '0'=good&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; '1-3'=fair&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; '3+'=bad&lt;/P&gt;&lt;P&gt;proc freq&amp;nbsp; data =merged;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; table missclass;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; format missclass $mclass.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;please help;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2019 12:55:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/proc-freq-help/m-p/594724#M8122</guid>
      <dc:creator>pinkyloop</dc:creator>
      <dc:date>2019-10-08T12:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: percentage of male  female in front row and male in front row</title>
      <link>https://communities.sas.com/t5/SAS-Studio/proc-freq-help/m-p/594727#M8123</link>
      <description>&lt;P&gt;There's no need to post the same question twice. All replies should go into your other thread.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Studio/proc-freq-help/td-p/594726" target="_blank"&gt;https://communities.sas.com/t5/SAS-Studio/proc-freq-help/td-p/594726&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2019 13:02:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/proc-freq-help/m-p/594727#M8123</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-10-08T13:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: percentage of male  female in front row and male in front row</title>
      <link>https://communities.sas.com/t5/SAS-Studio/proc-freq-help/m-p/594728#M8124</link>
      <description>&lt;P&gt;ok thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2019 13:03:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/proc-freq-help/m-p/594728#M8124</guid>
      <dc:creator>pinkyloop</dc:creator>
      <dc:date>2019-10-08T13:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: proc freq help</title>
      <link>https://communities.sas.com/t5/SAS-Studio/proc-freq-help/m-p/594729#M8115</link>
      <description>&lt;P&gt;What do you mean by "just the front row"?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please show us what you are getting, and in detail, explain why this isn't what you want and exactly what you do want. Please provide (a portion of) your data for us to see.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2019 13:03:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/proc-freq-help/m-p/594729#M8115</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-10-08T13:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: proc freq help</title>
      <link>https://communities.sas.com/t5/SAS-Studio/proc-freq-help/m-p/594730#M8116</link>
      <description>&lt;P&gt;the question says&amp;nbsp;&lt;/P&gt;&lt;P&gt;calculate the percentage of female students who sat in the front row and compare it to the male students who sat in the front row.&lt;/P&gt;&lt;P&gt;usint the proc freq&amp;nbsp; for the table sex *sex.i get the freq for all the&amp;nbsp; row of seat both male and females sat.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2019 13:06:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/proc-freq-help/m-p/594730#M8116</guid>
      <dc:creator>pinkyloop</dc:creator>
      <dc:date>2019-10-08T13:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: proc freq help</title>
      <link>https://communities.sas.com/t5/SAS-Studio/proc-freq-help/m-p/594739#M8117</link>
      <description>&lt;P&gt;We don't know how "front row" is identified in the data.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;We need to see (a portion of) your data, with explanation.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2019 13:19:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/proc-freq-help/m-p/594739#M8117</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-10-08T13:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: proc freq help</title>
      <link>https://communities.sas.com/t5/SAS-Studio/proc-freq-help/m-p/594741#M8118</link>
      <description>&lt;P&gt;please see attached part of the data i am working with&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2019 13:26:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/proc-freq-help/m-p/594741#M8118</guid>
      <dc:creator>pinkyloop</dc:creator>
      <dc:date>2019-10-08T13:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: proc freq help</title>
      <link>https://communities.sas.com/t5/SAS-Studio/proc-freq-help/m-p/594744#M8119</link>
      <description>'front' is identified in the data</description>
      <pubDate>Tue, 08 Oct 2019 13:27:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/proc-freq-help/m-p/594744#M8119</guid>
      <dc:creator>pinkyloop</dc:creator>
      <dc:date>2019-10-08T13:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: proc freq help</title>
      <link>https://communities.sas.com/t5/SAS-Studio/proc-freq-help/m-p/594757#M8120</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/290508"&gt;@pinkyloop&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) how do i get the freq for just the front row.this is what i did&lt;/P&gt;
&lt;PRE&gt;proc freq data=merged;&lt;BR /&gt;tables seat * sex/nocum ;&lt;BR /&gt;run;&lt;/PRE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=merged(where=(seat='Front'));
    tables sex;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;2) how do i get the percentage of students that missed 0 classes,1-3 classes or more than 3 classes.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
    value missf 0='0' 1-3='1-3' 4-high='&amp;gt;3';
run;
proc freq data=merged;
    tables missclass;
    format missclass missf.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 08 Oct 2019 13:41:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/proc-freq-help/m-p/594757#M8120</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-10-08T13:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: proc freq help</title>
      <link>https://communities.sas.com/t5/SAS-Studio/proc-freq-help/m-p/594759#M8121</link>
      <description>Thank you so Much!</description>
      <pubDate>Tue, 08 Oct 2019 13:46:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/proc-freq-help/m-p/594759#M8121</guid>
      <dc:creator>pinkyloop</dc:creator>
      <dc:date>2019-10-08T13:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: proc freq help</title>
      <link>https://communities.sas.com/t5/SAS-Studio/proc-freq-help/m-p/594781#M8125</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/290508"&gt;@pinkyloop&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Thank you so Much!&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;'s solution is one demonstration of an extremely powerful tool in SAS: Formats. Almost any grouping that needs to be done based on a single variable should at least consider the use of a format instead of adding a variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The groups created by formats are generally honored by most analysis, reporting and graphing procedures. So they can be extremely handy for examining data behavior. You can create multiple formats and see the results by just changing the format associated for use in a procedure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also if you have lists that change occasionally, think store, building name, teacher it can be easier to modify a format to use the current association then to modify data sets.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And the flip side of the format, the informat (invalue statement in Proc Format) can be used to read data into consistent forms or identify data entry errors or unexpected values.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2019 15:18:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/proc-freq-help/m-p/594781#M8125</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-10-08T15:18:10Z</dc:date>
    </item>
  </channel>
</rss>

