<?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: Code help for certain tasks in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Code-help-for-certain-tasks/m-p/524063#M142474</link>
    <description>&lt;P&gt;So you posted the same thing in three different sections of the communities. To remain polite: this was not necessary.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Links:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Community-Matters/Help-SAS-coding/m-p/524054" target="_blank"&gt;https://communities.sas.com/t5/Community-Matters/Help-SAS-coding/m-p/524054&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Procedures/Coding-help/m-p/524055" target="_blank"&gt;https://communities.sas.com/t5/SAS-Procedures/Coding-help/m-p/524055&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS Studio has a task for importing text files, you should start with this. Good Luck&lt;/P&gt;</description>
    <pubDate>Wed, 02 Jan 2019 12:14:06 GMT</pubDate>
    <dc:creator>andreas_lds</dc:creator>
    <dc:date>2019-01-02T12:14:06Z</dc:date>
    <item>
      <title>Code help for certain tasks</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Code-help-for-certain-tasks/m-p/524053#M142467</link>
      <description>&lt;P&gt;Hi there, these are the tasks I need to complete using SAS tasks. A template for the code I need to use to perform each task would be very helpful. Thanks in advance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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:18:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Code-help-for-certain-tasks/m-p/524053#M142467</guid>
      <dc:creator>declanjohn</dc:creator>
      <dc:date>2019-01-02T11:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: Code help for certain tasks</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Code-help-for-certain-tasks/m-p/524063#M142474</link>
      <description>&lt;P&gt;So you posted the same thing in three different sections of the communities. To remain polite: this was not necessary.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Links:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Community-Matters/Help-SAS-coding/m-p/524054" target="_blank"&gt;https://communities.sas.com/t5/Community-Matters/Help-SAS-coding/m-p/524054&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Procedures/Coding-help/m-p/524055" target="_blank"&gt;https://communities.sas.com/t5/SAS-Procedures/Coding-help/m-p/524055&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS Studio has a task for importing text files, you should start with this. Good Luck&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jan 2019 12:14:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Code-help-for-certain-tasks/m-p/524063#M142474</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2019-01-02T12:14:06Z</dc:date>
    </item>
  </channel>
</rss>

