<?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 find median of Age variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-median-of-Age-variable/m-p/871428#M344242</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input Age $;
datalines;
042
043
055
035
065
066
070
098
;
run;

data have1;
 set have;
 AgeNum=input(Age,3.);
run;

proc means data=have1 median qrange fw=8;
 var AgeNum;
 output out=want median= qrange= / autoname;
run;
/* end of program */&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 23 Apr 2023 16:08:39 GMT</pubDate>
    <dc:creator>sbxkoenk</dc:creator>
    <dc:date>2023-04-23T16:08:39Z</dc:date>
    <item>
      <title>How to find median of Age variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-median-of-Age-variable/m-p/871426#M344240</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;This might be very simple but I will like to find the median (IQR) of an age variable. The age variable is in character format and the code is three digits. Here is an example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;data have;
input Age $;
datalines;
042
043
055
035
065
066
070
098
;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I thought about removing the 0 before converting data to numeric but I don't know how. Is this a meaning idea ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Apr 2023 15:51:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-median-of-Age-variable/m-p/871426#M344240</guid>
      <dc:creator>CathyVI</dc:creator>
      <dc:date>2023-04-23T15:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to find median of Age variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-median-of-Age-variable/m-p/871428#M344242</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input Age $;
datalines;
042
043
055
035
065
066
070
098
;
run;

data have1;
 set have;
 AgeNum=input(Age,3.);
run;

proc means data=have1 median qrange fw=8;
 var AgeNum;
 output out=want median= qrange= / autoname;
run;
/* end of program */&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 23 Apr 2023 16:08:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-median-of-Age-variable/m-p/871428#M344242</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-04-23T16:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to find median of Age variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-median-of-Age-variable/m-p/871447#M344260</link>
      <description>&lt;P&gt;Why do you read a number as character?&lt;/P&gt;</description>
      <pubDate>Sun, 23 Apr 2023 18:30:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-median-of-Age-variable/m-p/871447#M344260</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-04-23T18:30:38Z</dc:date>
    </item>
  </channel>
</rss>

