<?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: Proc format to categorized in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-format-to-categorized/m-p/612279#M178618</link>
    <description>&lt;P&gt;Hi PaigeMiller,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am still confused about proc freq.&lt;/P&gt;&lt;P&gt;I have tried :&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=final2;
tables hsrank;
format hsrack hcrank.;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;which gives the&amp;nbsp;&lt;SPAN&gt;High school class rank as percentile&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;output:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2019-12-16 at 4.54.51 PM.png" style="width: 405px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/34850iAB344BE9C94F806F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2019-12-16 at 4.54.51 PM.png" alt="Screen Shot 2019-12-16 at 4.54.51 PM.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;but can still not find&amp;nbsp;the 99% confidence interval for the proportion of lcrank.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Dec 2019 00:56:03 GMT</pubDate>
    <dc:creator>ivethguzman</dc:creator>
    <dc:date>2019-12-17T00:56:03Z</dc:date>
    <item>
      <title>Proc format to categorized</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-format-to-categorized/m-p/612246#M178599</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have to use proc format to categorize a variable from my data set, the instructions are as follows:&lt;/P&gt;&lt;P&gt;If any student with High School Class Rank percentile less than 82 is categorized as hcrank and lcrank otherwise (use proc format to categorize).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
value hsrank 'hcrank' max= '82'
	      other = 'lcrank';
		  	 
run;
/***/
data temp;
infile '/folders/myfolders/MY SAS Files/Data/finaldata.txt';
input ID gpa hsrank act year;
label ID = 'Identification'
	  gpa = 'Grade-point average following freshman year'
	  hsrank = 'High school class rank as percentile'
	  act = 'ACT entrence examination score'
	  year = 'Calender year that freshman entered university';
run;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;followed by :&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Find the 99% confidence interval for the proportion of lcrank.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;since I can not run the first part, I can also not run the second part.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the second part should i address it as proc univariate ?&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2019 22:36:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-format-to-categorized/m-p/612246#M178599</guid>
      <dc:creator>ivethguzman</dc:creator>
      <dc:date>2019-12-16T22:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: Proc format to categorized</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-format-to-categorized/m-p/612248#M178601</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
    value hsrank low-82='hcrank'
	      other = 'lcrank';	  	 
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;For the second part, use PROC FREQ&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2019 22:49:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-format-to-categorized/m-p/612248#M178601</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-12-16T22:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: Proc format to categorized</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-format-to-categorized/m-p/612279#M178618</link>
      <description>&lt;P&gt;Hi PaigeMiller,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am still confused about proc freq.&lt;/P&gt;&lt;P&gt;I have tried :&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=final2;
tables hsrank;
format hsrack hcrank.;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;which gives the&amp;nbsp;&lt;SPAN&gt;High school class rank as percentile&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;output:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2019-12-16 at 4.54.51 PM.png" style="width: 405px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/34850iAB344BE9C94F806F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2019-12-16 at 4.54.51 PM.png" alt="Screen Shot 2019-12-16 at 4.54.51 PM.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;but can still not find&amp;nbsp;the 99% confidence interval for the proportion of lcrank.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2019 00:56:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-format-to-categorized/m-p/612279#M178618</guid>
      <dc:creator>ivethguzman</dc:creator>
      <dc:date>2019-12-17T00:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: Proc format to categorized</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-format-to-categorized/m-p/612361#M178675</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/290618"&gt;@ivethguzman&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi PaigeMiller,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am still confused about proc freq.&lt;/P&gt;
&lt;P&gt;I have tried :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=final2;
tables hsrank;
format hsrack hcrank.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You don't have a format named hcrank. You have a format named hsrank (at least if you used the code I showed). You also don't have a variable named hsrack. So first you need to fix the spelling errors.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Next, there are many many many many useful options in PROC FREQ, the one you want is the BINOMIAL option of the TABLES statement. It would be a good idea for you to become familiar with them because I'm sure you will be using them a lot. Here they are: &lt;A href="https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_freq_syntax08.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en" target="_blank" rel="noopener"&gt;https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_freq_syntax08.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2019 14:27:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-format-to-categorized/m-p/612361#M178675</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-12-17T14:27:49Z</dc:date>
    </item>
  </channel>
</rss>

