<?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: Manual Entry of Frequency Data in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Manual-Entry-of-Frequency-Data/m-p/646722#M22087</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/328286"&gt;@AbhilashS&lt;/a&gt;&amp;nbsp;and welcome to the SAS Support Communities!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can create the dataset as PaigeMiller suggested or, e.g., like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
hours=4+_n_;
input n @@;
cards;
3 8 20 11 6 2
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then apply&amp;nbsp;&lt;A href="https://documentation.sas.com/?docsetId=procstat&amp;amp;docsetVersion=9.4&amp;amp;docsetTarget=procstat_univariate_overview.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;PROC UNIVARIATE&lt;/A&gt;&amp;nbsp;to dataset HAVE using the &lt;A href="https://documentation.sas.com/?docsetId=procstat&amp;amp;docsetVersion=9.4&amp;amp;docsetTarget=procstat_univariate_syntax08.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;FREQ statement&lt;/A&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;freq n;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;(or &lt;FONT face="courier new,courier"&gt;freq frequency;&lt;/FONT&gt; if you used this variable name in the INPUT statement) to compute the statistics.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alternatively, create the dataset with only one variable (&lt;FONT face="courier new,courier"&gt;hours&lt;/FONT&gt;), but with 50 observations rather than 6, and then omit the FREQ statement in the analysis:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
hours=4+_n_;
input _n_ @@;
do _n_=1 to _n_;
  output;
end;
cards;
3 8 20 11 6 2
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 11 May 2020 14:39:14 GMT</pubDate>
    <dc:creator>FreelanceReinh</dc:creator>
    <dc:date>2020-05-11T14:39:14Z</dc:date>
    <item>
      <title>Manual Entry of Frequency Data</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Manual-Entry-of-Frequency-Data/m-p/646697#M22084</link>
      <description>&lt;P&gt;Hi there&lt;/P&gt;&lt;P&gt;I am trying to create the following type of table in SAS manually and then practice getting means, standard deviations, and interquartile ranges from the data and table. I am not sure what type of code to use to efficiently input the data into SAS without having to repeatedly key in each value.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2020-05-11 at 14.38.56.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/39283i37A5310E559E3EBF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2020-05-11 at 14.38.56.png" alt="Screen Shot 2020-05-11 at 14.38.56.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2020 14:10:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Manual-Entry-of-Frequency-Data/m-p/646697#M22084</guid>
      <dc:creator>AbhilashS</dc:creator>
      <dc:date>2020-05-11T14:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: Manual Entry of Frequency Data</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Manual-Entry-of-Frequency-Data/m-p/646703#M22085</link>
      <description>&lt;P&gt;Here's how you input the first two rows&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
     input hours frequency;
     cards;
5 3
6 8
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It's not clear what you mean by "&lt;SPAN&gt;without having to repeatedly key in each value"? Is the data in a file (text file, csv file, excel file) somewhere? What does the word "repeatedly" refer to? Why do you think this would have to be done "repeatedly"?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2020 14:17:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Manual-Entry-of-Frequency-Data/m-p/646703#M22085</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-05-11T14:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Manual Entry of Frequency Data</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Manual-Entry-of-Frequency-Data/m-p/646720#M22086</link>
      <description>I am going to try this and then run the statistics and see if the answers match. I was worried that if I try to get the 'median' value for hours for instance, it might not realize each different hour have a number of responses.&lt;BR /&gt;be right back!</description>
      <pubDate>Mon, 11 May 2020 14:30:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Manual-Entry-of-Frequency-Data/m-p/646720#M22086</guid>
      <dc:creator>AbhilashS</dc:creator>
      <dc:date>2020-05-11T14:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: Manual Entry of Frequency Data</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Manual-Entry-of-Frequency-Data/m-p/646722#M22087</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/328286"&gt;@AbhilashS&lt;/a&gt;&amp;nbsp;and welcome to the SAS Support Communities!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can create the dataset as PaigeMiller suggested or, e.g., like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
hours=4+_n_;
input n @@;
cards;
3 8 20 11 6 2
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then apply&amp;nbsp;&lt;A href="https://documentation.sas.com/?docsetId=procstat&amp;amp;docsetVersion=9.4&amp;amp;docsetTarget=procstat_univariate_overview.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;PROC UNIVARIATE&lt;/A&gt;&amp;nbsp;to dataset HAVE using the &lt;A href="https://documentation.sas.com/?docsetId=procstat&amp;amp;docsetVersion=9.4&amp;amp;docsetTarget=procstat_univariate_syntax08.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;FREQ statement&lt;/A&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;freq n;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;(or &lt;FONT face="courier new,courier"&gt;freq frequency;&lt;/FONT&gt; if you used this variable name in the INPUT statement) to compute the statistics.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alternatively, create the dataset with only one variable (&lt;FONT face="courier new,courier"&gt;hours&lt;/FONT&gt;), but with 50 observations rather than 6, and then omit the FREQ statement in the analysis:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
hours=4+_n_;
input _n_ @@;
do _n_=1 to _n_;
  output;
end;
cards;
3 8 20 11 6 2
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2020 14:39:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Manual-Entry-of-Frequency-Data/m-p/646722#M22087</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2020-05-11T14:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: Manual Entry of Frequency Data</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Manual-Entry-of-Frequency-Data/m-p/646746#M22088</link>
      <description>&lt;P&gt;Thank you both PaigeMiller and FreelanceReinhard. I tried the last code and found it a best fit. I am only starting so I apologize for some nonsensical questions.&amp;nbsp; The answers matched what I was looking for from 50 responses.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2020-05-11 at 16.01.17.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/39294i980D42976E013976/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2020-05-11 at 16.01.17.png" alt="Screen Shot 2020-05-11 at 16.01.17.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2020 15:01:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Manual-Entry-of-Frequency-Data/m-p/646746#M22088</guid>
      <dc:creator>AbhilashS</dc:creator>
      <dc:date>2020-05-11T15:01:58Z</dc:date>
    </item>
  </channel>
</rss>

