<?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 Help SAS coding in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Help-SAS-coding/m-p/524054#M4743</link>
    <description>&lt;P&gt;I need help finding coding templates to complete the below tasks in SAS. Thanks in advance.&lt;/P&gt;&lt;P&gt;1) Import the data from air_pollution.csv to SAS (3)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Weather in Beijing &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;2) &amp;nbsp;Produce the frequencies of all values of combined wind direction (cbwd) (from most frequent to least frequent) (2)&lt;/LI&gt;&lt;LI&gt;3) &amp;nbsp;What is the most frequently occurring wind direction? (1)&lt;/LI&gt;&lt;LI&gt;4) &amp;nbsp;Calculate the correlation coefficient between temperature (TEMP) and pressure (PRES) (3)&lt;/LI&gt;&lt;LI&gt;5) &amp;nbsp;Is the correlation positive or negative? What is its strength (very weak/weak/moderate/strong/very strong)? (2)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;How does air pollution vary over months? &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;6) &amp;nbsp;Compute the descriptive statistics of pm2_5 by month (3)&lt;/LI&gt;&lt;LI&gt;7) &amp;nbsp;On average, in which month is the pollution level highest, and in which month is it lowest? (2)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Relationship between air pollution and weather &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt; &amp;nbsp;Build a linear regression model where pm2_5 is a dependent variable, and month, DEWP, TEMP, PRES, cbwd, Iws, Is and Ir are independent variables (8)&lt;/LI&gt;&lt;LI&gt;9) &amp;nbsp;What is the R-squared of this model? Based on the R-squared, does the model fit the data well? (4)&lt;/LI&gt;&lt;LI&gt;10) &amp;nbsp;Create a new variable (high_pm2_5) that takes value 1 if pm2_5 is greater than 150 ug/m^3 and value 0 otherwise (3)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;11) Develop a logistic regression model where high_pm2_5 is a dependent variable, and month, DEWP, TEMP, PRES, cbwd, Iws, Is and Ir are independent variables (8)&lt;/P&gt;&lt;P&gt;12) What is the AUC (c statistic) of this model? Based on the AUC, does the model separate high and low pollution levels well? (4)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;The worst smog in Beijing &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;13) &amp;nbsp;Create a new data set (avg_air_pollution) and calculate an average pollution level (avg_pm2_5) for each month of each year. Select the variables year, month and avg_pm2_5 (10)&lt;/LI&gt;&lt;LI&gt;14) &amp;nbsp;In which of the 60 analysed months was the average pollution level (avg_pm2_5) highest? This was the worst smog Beijing has experienced for over 50 years (2)&lt;/LI&gt;&lt;LI&gt;15) &amp;nbsp;Based on the new data set, create a pdf report (highest_avg_air_pollution.pdf) that contains the list of those months in which the average pollution level (avg_pm2_5) was greater than 100 ug/m^3. Use the Moonflower style and add a title ("Months With Highest Average Air Pollution") (5)&lt;/LI&gt;&lt;/OL&gt;</description>
    <pubDate>Wed, 02 Jan 2019 11:19:33 GMT</pubDate>
    <dc:creator>declanjohn</dc:creator>
    <dc:date>2019-01-02T11:19:33Z</dc:date>
    <item>
      <title>Help SAS coding</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Help-SAS-coding/m-p/524054#M4743</link>
      <description>&lt;P&gt;I need help finding coding templates to complete the below tasks in SAS. Thanks in advance.&lt;/P&gt;&lt;P&gt;1) Import the data from air_pollution.csv to SAS (3)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Weather in Beijing &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;2) &amp;nbsp;Produce the frequencies of all values of combined wind direction (cbwd) (from most frequent to least frequent) (2)&lt;/LI&gt;&lt;LI&gt;3) &amp;nbsp;What is the most frequently occurring wind direction? (1)&lt;/LI&gt;&lt;LI&gt;4) &amp;nbsp;Calculate the correlation coefficient between temperature (TEMP) and pressure (PRES) (3)&lt;/LI&gt;&lt;LI&gt;5) &amp;nbsp;Is the correlation positive or negative? What is its strength (very weak/weak/moderate/strong/very strong)? (2)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;How does air pollution vary over months? &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;6) &amp;nbsp;Compute the descriptive statistics of pm2_5 by month (3)&lt;/LI&gt;&lt;LI&gt;7) &amp;nbsp;On average, in which month is the pollution level highest, and in which month is it lowest? (2)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Relationship between air pollution and weather &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt; &amp;nbsp;Build a linear regression model where pm2_5 is a dependent variable, and month, DEWP, TEMP, PRES, cbwd, Iws, Is and Ir are independent variables (8)&lt;/LI&gt;&lt;LI&gt;9) &amp;nbsp;What is the R-squared of this model? Based on the R-squared, does the model fit the data well? (4)&lt;/LI&gt;&lt;LI&gt;10) &amp;nbsp;Create a new variable (high_pm2_5) that takes value 1 if pm2_5 is greater than 150 ug/m^3 and value 0 otherwise (3)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;11) Develop a logistic regression model where high_pm2_5 is a dependent variable, and month, DEWP, TEMP, PRES, cbwd, Iws, Is and Ir are independent variables (8)&lt;/P&gt;&lt;P&gt;12) What is the AUC (c statistic) of this model? Based on the AUC, does the model separate high and low pollution levels well? (4)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;The worst smog in Beijing &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;13) &amp;nbsp;Create a new data set (avg_air_pollution) and calculate an average pollution level (avg_pm2_5) for each month of each year. Select the variables year, month and avg_pm2_5 (10)&lt;/LI&gt;&lt;LI&gt;14) &amp;nbsp;In which of the 60 analysed months was the average pollution level (avg_pm2_5) highest? This was the worst smog Beijing has experienced for over 50 years (2)&lt;/LI&gt;&lt;LI&gt;15) &amp;nbsp;Based on the new data set, create a pdf report (highest_avg_air_pollution.pdf) that contains the list of those months in which the average pollution level (avg_pm2_5) was greater than 100 ug/m^3. Use the Moonflower style and add a title ("Months With Highest Average Air Pollution") (5)&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Wed, 02 Jan 2019 11:19:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Help-SAS-coding/m-p/524054#M4743</guid>
      <dc:creator>declanjohn</dc:creator>
      <dc:date>2019-01-02T11:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: Help SAS coding</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Help-SAS-coding/m-p/524078#M4744</link>
      <description>&lt;P&gt;Is this a homework assignment or a training exercise?&amp;nbsp; Have you managed to start any of this (such as, importing the data)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you're using SAS University Edition, the interface (SAS Studio) provides tasks for most of the challenges that you present.&amp;nbsp; These tasks generate the SAS code that you can then study/modify to learn from.&amp;nbsp; You didn't include the pollution data CSV file, so it's difficult to respond with specific code ideas for you.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But, to provide a few hints, for the "Weather in Beijing" section you'll want to use:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;PROC FREQ with a TABLE statement for&amp;nbsp;&lt;STRONG&gt;cbwd&lt;/STRONG&gt; and use the ORDER=FREQ.&lt;/LI&gt;
&lt;LI&gt;PROC CORR with the TEMP and PRES variables.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;And, of course, you'll need to know something about interpreting the results.&amp;nbsp; Check the &lt;A href="https://video.sas.com/category/videos/sas-studio" target="_self"&gt;SAS Studio tutorials for more guidance on some of these tasks&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jan 2019 13:07:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Help-SAS-coding/m-p/524078#M4744</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2019-01-02T13:07:36Z</dc:date>
    </item>
  </channel>
</rss>

