<?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: newbie stuck at square 1 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/newbie-stuck-at-square-1/m-p/354600#M82969</link>
    <description>&lt;P&gt;Just to get you started, you are looking for the shaded area under the curve plotted like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data PDF;
do hours = 8 to 48 by 0.05;
   Y = pdf("Normal", hours, 28, 5.6);

   if hours &amp;lt;= 35 then upper = Y;else upper = 0;
   if hours &amp;lt;= 20 then lower = Y; else lower = 0;

   output;
end;
run;

/* First Question */
title 'Density of Hours Spent online';
title2 '18 to 24 year olds';
proc sgplot data = PDF noautolegend;
   series x = hours y = Y;
   band x = hours lower = lower upper = upper;

   xaxis label = 'Hours Spent';
   yaxis label = 'Density';
run;
title;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 28 Apr 2017 20:28:58 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2017-04-28T20:28:58Z</dc:date>
    <item>
      <title>newbie stuck at square 1</title>
      <link>https://communities.sas.com/t5/SAS-Programming/newbie-stuck-at-square-1/m-p/354587#M82963</link>
      <description>&lt;P&gt;I need help with the following question, please. I have no idea where to start&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The number of hours of the college students aged 18 to 24 years spending online in a typical week was interested in to a researcher. Suppose that the number of hours spending online is normal distributed with mean of 28 and standard deviation of 5.6.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;Use appropriate Functions in SAS to answer the following questions.&amp;nbsp;&lt;BR /&gt;Find the probability that a college student aged 18 to 24 years, selected at random, spends between 20 and 35 hours online each week.&amp;nbsp; Determine the proportion of college students aged 18 to 24 years who spend more than 40 hours online per week.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2017 19:58:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/newbie-stuck-at-square-1/m-p/354587#M82963</guid>
      <dc:creator>pacruz</dc:creator>
      <dc:date>2017-04-28T19:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: newbie stuck at square 1</title>
      <link>https://communities.sas.com/t5/SAS-Programming/newbie-stuck-at-square-1/m-p/354592#M82966</link>
      <description>&lt;P&gt;This is a relatively basic statistics question, the kind you would be asked in statistics 101.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you know how to do this using pencil and paper and a table of the normal distribution, then the method in SAS simply replaces the table of the normal distribution with a function in SAS. The SAS function you would want to use is the &lt;A href="http://documentation.sas.com/?cdcId=pgmmvacdc&amp;amp;cdcVersion=9.4&amp;amp;docsetId=lefunctionsref&amp;amp;docsetTarget=p0am6dtkvnrb09n132vioa1z6oen.htm&amp;amp;locale=en" target="_self"&gt;PROBNORM function&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And if you don't know how to do this using pencil and paper, then you need to first learn the basics of the normal distribution, any introductory textbook will do.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2017 20:06:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/newbie-stuck-at-square-1/m-p/354592#M82966</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2017-04-28T20:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: newbie stuck at square 1</title>
      <link>https://communities.sas.com/t5/SAS-Programming/newbie-stuck-at-square-1/m-p/354600#M82969</link>
      <description>&lt;P&gt;Just to get you started, you are looking for the shaded area under the curve plotted like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data PDF;
do hours = 8 to 48 by 0.05;
   Y = pdf("Normal", hours, 28, 5.6);

   if hours &amp;lt;= 35 then upper = Y;else upper = 0;
   if hours &amp;lt;= 20 then lower = Y; else lower = 0;

   output;
end;
run;

/* First Question */
title 'Density of Hours Spent online';
title2 '18 to 24 year olds';
proc sgplot data = PDF noautolegend;
   series x = hours y = Y;
   band x = hours lower = lower upper = upper;

   xaxis label = 'Hours Spent';
   yaxis label = 'Density';
run;
title;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 28 Apr 2017 20:28:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/newbie-stuck-at-square-1/m-p/354600#M82969</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2017-04-28T20:28:58Z</dc:date>
    </item>
  </channel>
</rss>

