<?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 Matched Subjects Design With SAS in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Matched-Subjects-Design-With-SAS/m-p/504704#M25942</link>
    <description>&lt;P&gt;Hello everybody!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have to randomized the subjects for an Experiment and assigned them to a "Treatment" Group or a "Placebo" Group.&lt;/P&gt;&lt;P&gt;I would like to write&amp;nbsp;a programm&amp;nbsp;with SAS that find the best matches in a list of subjects and matches them based on different Parameters (such as Age and Sex).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example having one dataset that Looks as follow:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ID&amp;nbsp;&amp;nbsp; Sex&amp;nbsp; &amp;nbsp;Age&amp;nbsp;&lt;/P&gt;&lt;P&gt;01&amp;nbsp;&amp;nbsp; M&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 23&lt;/P&gt;&lt;P&gt;02&amp;nbsp;&amp;nbsp; M&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 37&lt;/P&gt;&lt;P&gt;03&amp;nbsp;&amp;nbsp; F&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;29&lt;/P&gt;&lt;P&gt;04&amp;nbsp;&amp;nbsp; M&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 25&lt;/P&gt;&lt;P&gt;05&amp;nbsp;&amp;nbsp; F&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 30&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Programm should give me back as result that the best matches are:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Subj 01 -&amp;gt; Subj 04&amp;nbsp; (Sex M=M; Age 23=25)&lt;/P&gt;&lt;P&gt;Subj 03 -&amp;gt; Subj 05 (Sex F=F; Age 29=30)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and so on....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I looked in the Internet but I can´t find any tutorial about it. Can someone help me posting the link of a source where I can learn to do this or give me some tipps?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 16 Oct 2018 13:14:54 GMT</pubDate>
    <dc:creator>riccardo88</dc:creator>
    <dc:date>2018-10-16T13:14:54Z</dc:date>
    <item>
      <title>Matched Subjects Design With SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Matched-Subjects-Design-With-SAS/m-p/504704#M25942</link>
      <description>&lt;P&gt;Hello everybody!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have to randomized the subjects for an Experiment and assigned them to a "Treatment" Group or a "Placebo" Group.&lt;/P&gt;&lt;P&gt;I would like to write&amp;nbsp;a programm&amp;nbsp;with SAS that find the best matches in a list of subjects and matches them based on different Parameters (such as Age and Sex).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example having one dataset that Looks as follow:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ID&amp;nbsp;&amp;nbsp; Sex&amp;nbsp; &amp;nbsp;Age&amp;nbsp;&lt;/P&gt;&lt;P&gt;01&amp;nbsp;&amp;nbsp; M&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 23&lt;/P&gt;&lt;P&gt;02&amp;nbsp;&amp;nbsp; M&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 37&lt;/P&gt;&lt;P&gt;03&amp;nbsp;&amp;nbsp; F&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;29&lt;/P&gt;&lt;P&gt;04&amp;nbsp;&amp;nbsp; M&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 25&lt;/P&gt;&lt;P&gt;05&amp;nbsp;&amp;nbsp; F&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 30&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Programm should give me back as result that the best matches are:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Subj 01 -&amp;gt; Subj 04&amp;nbsp; (Sex M=M; Age 23=25)&lt;/P&gt;&lt;P&gt;Subj 03 -&amp;gt; Subj 05 (Sex F=F; Age 29=30)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and so on....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I looked in the Internet but I can´t find any tutorial about it. Can someone help me posting the link of a source where I can learn to do this or give me some tipps?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Oct 2018 13:14:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Matched-Subjects-Design-With-SAS/m-p/504704#M25942</guid>
      <dc:creator>riccardo88</dc:creator>
      <dc:date>2018-10-16T13:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: Matched Subjects Design With SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Matched-Subjects-Design-With-SAS/m-p/504719#M25943</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input ID   Sex $  Age ;
cards;
01   M     23
02   M     37
03   F      29
04   M     25
05   F      30
;
run;
proc sql;
select a.*,b.id as _id
 from have as a,have as b
  where a.id ne b.id and a.sex=b.sex
   group by a.id
    having abs(a.age-b.age) =  min(abs(a.age-b.age));
  quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 Oct 2018 13:55:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Matched-Subjects-Design-With-SAS/m-p/504719#M25943</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-10-16T13:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: Matched Subjects Design With SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Matched-Subjects-Design-With-SAS/m-p/504767#M25949</link>
      <description>&lt;P&gt;Try the PSMATCH procedure documentation:&amp;nbsp;&lt;A href="https://support.sas.com/documentation/onlinedoc/stat/142/psmatch.pdf" target="_blank"&gt;https://support.sas.com/documentation/onlinedoc/stat/142/psmatch.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One spot (of many) to look at specifically is Example 95.6: Mahalanobis Distance Matching. In the output statement of PSMATCH, include the MATCHID=_MatchID option to create a variable named _MatchID that identifies the matched sets of observations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You'll need to include the column that designates each subject as either "test" or "control".&lt;/P&gt;</description>
      <pubDate>Tue, 16 Oct 2018 16:32:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Matched-Subjects-Design-With-SAS/m-p/504767#M25949</guid>
      <dc:creator>cousineddie</dc:creator>
      <dc:date>2018-10-16T16:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: Matched Subjects Design With SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Matched-Subjects-Design-With-SAS/m-p/504987#M25961</link>
      <description>&lt;P&gt;Works perfect! Thank you very much!!&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2018 08:10:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Matched-Subjects-Design-With-SAS/m-p/504987#M25961</guid>
      <dc:creator>riccardo88</dc:creator>
      <dc:date>2018-10-17T08:10:57Z</dc:date>
    </item>
  </channel>
</rss>

