<?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: How to remove outlier from the variable age? in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/How-to-remove-outlier-from-the-variable-age/m-p/834178#M35846</link>
    <description>&lt;P&gt;Adding to the suggestions by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt; here is a third method&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data want; 
   set have;
   if age &amp;gt; &amp;lt;limit&amp;gt; then age=limit;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And a fourth method:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do nothing, it's not an outlier. An age of 40 seems to me to be not an outlier, but we don't know how you collected the data, and what population you collected the data from.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/414915"&gt;@gtucke1&lt;/a&gt; to quote from &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;, "Which to choose depends on your needs/wants which have not been very clearly stated." YOU have to decide what to do about a given outlier, YOU have to state your needs. We can write the code, but we can't tell you what the right decision is.&lt;/P&gt;</description>
    <pubDate>Mon, 19 Sep 2022 21:15:35 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2022-09-19T21:15:35Z</dc:date>
    <item>
      <title>How to remove outlier from the variable age?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-remove-outlier-from-the-variable-age/m-p/834149#M35839</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The variable age in the dataset is in years. There is one observation that is 40years while the next closest is 25 years. How do I write a code to remove the outlier from the variable age?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 18:28:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-remove-outlier-from-the-variable-age/m-p/834149#M35839</guid>
      <dc:creator>gtucke1</dc:creator>
      <dc:date>2022-09-19T18:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove outlier from the variable age?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-remove-outlier-from-the-variable-age/m-p/834157#M35840</link>
      <description>&lt;P&gt;Is age supposed to be a sequence, or is it supposed to be from a certain distribution?&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 19:11:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-remove-outlier-from-the-variable-age/m-p/834157#M35840</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2022-09-19T19:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove outlier from the variable age?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-remove-outlier-from-the-variable-age/m-p/834161#M35841</link>
      <description>For the variable age, the question is, "How old is the patient in years?" I am keeping age as a continuous variable.</description>
      <pubDate>Mon, 19 Sep 2022 19:40:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-remove-outlier-from-the-variable-age/m-p/834161#M35841</guid>
      <dc:creator>gtucke1</dc:creator>
      <dc:date>2022-09-19T19:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove outlier from the variable age?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-remove-outlier-from-the-variable-age/m-p/834163#M35842</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/414915"&gt;@gtucke1&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;For the variable age, the question is, "How old is the patient in years?" I am keeping age as a continuous variable.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Why are you so sure that age is an "outlier"? Just how large is your data set? Something that occurs once in 50 records may not be an "outlier" but becomes more likely to be so at once in 50,000.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What do you want for a "removed outlier"? Remove the entire record? Remove the value (set to missing)? Replace the age with a different value?&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 19:45:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-remove-outlier-from-the-variable-age/m-p/834163#M35842</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-09-19T19:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove outlier from the variable age?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-remove-outlier-from-the-variable-age/m-p/834170#M35843</link>
      <description>There are 596 observations. I don't know what to do with the outlier.</description>
      <pubDate>Mon, 19 Sep 2022 20:10:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-remove-outlier-from-the-variable-age/m-p/834170#M35843</guid>
      <dc:creator>gtucke1</dc:creator>
      <dc:date>2022-09-19T20:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove outlier from the variable age?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-remove-outlier-from-the-variable-age/m-p/834175#M35845</link>
      <description>&lt;P&gt;One way:&lt;/P&gt;
&lt;P&gt;This would create a data set that none of the values associated with that person would ever be used.&lt;/P&gt;
&lt;PRE&gt;data want; 
   set have;
   if age &amp;gt; (the limit you want to use) then delete;
run;&lt;/PRE&gt;
&lt;P&gt;Another. This would mean that the value of age would not be used but other values could be.&lt;/P&gt;
&lt;PRE&gt;Data want; 
   set have;
   if age &amp;gt; &amp;lt;limit&amp;gt; then age=.;
run;&lt;/PRE&gt;
&lt;P&gt;Which to choose depends on your needs/wants which have not been very clearly stated.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 20:55:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-remove-outlier-from-the-variable-age/m-p/834175#M35845</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-09-19T20:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove outlier from the variable age?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-remove-outlier-from-the-variable-age/m-p/834178#M35846</link>
      <description>&lt;P&gt;Adding to the suggestions by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt; here is a third method&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data want; 
   set have;
   if age &amp;gt; &amp;lt;limit&amp;gt; then age=limit;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And a fourth method:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do nothing, it's not an outlier. An age of 40 seems to me to be not an outlier, but we don't know how you collected the data, and what population you collected the data from.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/414915"&gt;@gtucke1&lt;/a&gt; to quote from &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;, "Which to choose depends on your needs/wants which have not been very clearly stated." YOU have to decide what to do about a given outlier, YOU have to state your needs. We can write the code, but we can't tell you what the right decision is.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 21:15:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-remove-outlier-from-the-variable-age/m-p/834178#M35846</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-09-19T21:15:35Z</dc:date>
    </item>
  </channel>
</rss>

