<?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: SASHELP Data sets in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SASHELP-Data-sets/m-p/557880#M155594</link>
    <description>&lt;P&gt;Even after fixing that it still yielded the wrong answer, am I using the right statement?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 10 May 2019 16:56:27 GMT</pubDate>
    <dc:creator>michaelm90</dc:creator>
    <dc:date>2019-05-10T16:56:27Z</dc:date>
    <item>
      <title>SASHELP Data sets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SASHELP-Data-sets/m-p/557867#M155587</link>
      <description>&lt;P&gt;Hello, I am having trouble with this problem using the sas supplied dataset sashelp.baseball.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(dataset: SASHELP.BASEBALL) Report the expected value in American league (&lt;EM&gt;LEAGUE=AMERICAN&lt;/EM&gt;) whose 1987 Salary in $ Thousands (&lt;EM&gt;SALARY&lt;/EM&gt;) is 600 or higher&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;under the independence of salary&amp;nbsp;and league. (Up to three decimal places, please)&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The correct answer is 52.717. Here is my code:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc means data=sashelp.baseball;
where league='American';
where salary&amp;gt;=600;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 May 2019 16:42:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SASHELP-Data-sets/m-p/557867#M155587</guid>
      <dc:creator>michaelm90</dc:creator>
      <dc:date>2019-05-10T16:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: SASHELP Data sets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SASHELP-Data-sets/m-p/557869#M155589</link>
      <description>That's not how you have two conditions in a WHERE statement - check your log and see what it says. You can have multiple conditions by separating them with an AND.&lt;BR /&gt;&lt;BR /&gt;where league = 'American' and salary&amp;gt;=600</description>
      <pubDate>Fri, 10 May 2019 16:47:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SASHELP-Data-sets/m-p/557869#M155589</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-05-10T16:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: SASHELP Data sets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SASHELP-Data-sets/m-p/557880#M155594</link>
      <description>&lt;P&gt;Even after fixing that it still yielded the wrong answer, am I using the right statement?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 16:56:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SASHELP-Data-sets/m-p/557880#M155594</guid>
      <dc:creator>michaelm90</dc:creator>
      <dc:date>2019-05-10T16:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: SASHELP Data sets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SASHELP-Data-sets/m-p/557883#M155595</link>
      <description>Actually I don't think you are. I think the expectation here may have been to fit a GLM model and then to report the predicted value overall. Expected Value is throwing me off a bit - but given your previous question I think that's right.</description>
      <pubDate>Fri, 10 May 2019 16:57:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SASHELP-Data-sets/m-p/557883#M155595</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-05-10T16:57:58Z</dc:date>
    </item>
  </channel>
</rss>

