<?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 compare a variable between 2 different datasets in SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-compare-a-variable-between-2-different-datasets-in-SAS/m-p/857111#M338632</link>
    <description>That is wonderful, thank you so much for your help!&lt;BR /&gt;</description>
    <pubDate>Fri, 03 Feb 2023 20:34:58 GMT</pubDate>
    <dc:creator>YK5</dc:creator>
    <dc:date>2023-02-03T20:34:58Z</dc:date>
    <item>
      <title>How to compare a variable between 2 different datasets in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-compare-a-variable-between-2-different-datasets-in-SAS/m-p/857100#M338623</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Does anyone know how to compare a variable between 2 different datasets in SAS, please? I would like to assess whether there is a statistically significant difference in median age between 2 different datasets.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 19:54:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-compare-a-variable-between-2-different-datasets-in-SAS/m-p/857100#M338623</guid>
      <dc:creator>YK5</dc:creator>
      <dc:date>2023-02-03T19:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare a variable between 2 different datasets in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-compare-a-variable-between-2-different-datasets-in-SAS/m-p/857103#M338625</link>
      <description>&lt;P&gt;Combine the data sets into one, with the variable and indicate the source.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data combined;
set ds1 (keep=age) ds2(keep=age) indsname = source;

data_source = source;
run;

proc npar1way data =combined wilcoxon median;
class data_source;
var age;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_npar1way_examples01.htm" target="_blank"&gt;Reference: https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_npar1way_examples01.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/220676"&gt;@YK5&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Does anyone know how to compare a variable between 2 different datasets in SAS, please? I would like to assess whether there is a statistically significant difference in median age between 2 different datasets.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 20:01:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-compare-a-variable-between-2-different-datasets-in-SAS/m-p/857103#M338625</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-02-03T20:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare a variable between 2 different datasets in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-compare-a-variable-between-2-different-datasets-in-SAS/m-p/857111#M338632</link>
      <description>That is wonderful, thank you so much for your help!&lt;BR /&gt;</description>
      <pubDate>Fri, 03 Feb 2023 20:34:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-compare-a-variable-between-2-different-datasets-in-SAS/m-p/857111#M338632</guid>
      <dc:creator>YK5</dc:creator>
      <dc:date>2023-02-03T20:34:58Z</dc:date>
    </item>
  </channel>
</rss>

