<?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: Add adjusted variables to the %macro WMWodds program, such as age, gender in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Add-adjusted-variables-to-the-macro-WMWodds-program-such-as-age/m-p/867388#M342574</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/441403"&gt;@YoloY&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like you are a "fresher" here at communities.sas.com, let me share some&amp;nbsp; advise to help you get help faster.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want us to help you modify your code:&lt;/P&gt;
&lt;P&gt;1) paste the code, not a print screen of the code,&lt;/P&gt;
&lt;P&gt;2) explain what/how would you like the code to be modified...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bart&lt;/P&gt;</description>
    <pubDate>Fri, 31 Mar 2023 07:16:14 GMT</pubDate>
    <dc:creator>yabwon</dc:creator>
    <dc:date>2023-03-31T07:16:14Z</dc:date>
    <item>
      <title>Add adjusted variables to the %macro WMWodds program, such as age, gender</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-adjusted-variables-to-the-macro-WMWodds-program-such-as-age/m-p/867386#M342572</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="720a52c1124a4d77a8dfe562906fe4a.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/82221i1D619210E5EF428E/image-size/large?v=v2&amp;amp;px=999" role="button" title="720a52c1124a4d77a8dfe562906fe4a.png" alt="720a52c1124a4d77a8dfe562906fe4a.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 06:44:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-adjusted-variables-to-the-macro-WMWodds-program-such-as-age/m-p/867386#M342572</guid>
      <dc:creator>YoloY</dc:creator>
      <dc:date>2023-03-31T06:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: Add adjusted variables to the %macro WMWodds program, such as age, gender</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-adjusted-variables-to-the-macro-WMWodds-program-such-as-age/m-p/867388#M342574</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/441403"&gt;@YoloY&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like you are a "fresher" here at communities.sas.com, let me share some&amp;nbsp; advise to help you get help faster.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want us to help you modify your code:&lt;/P&gt;
&lt;P&gt;1) paste the code, not a print screen of the code,&lt;/P&gt;
&lt;P&gt;2) explain what/how would you like the code to be modified...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bart&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 07:16:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-adjusted-variables-to-the-macro-WMWodds-program-such-as-age/m-p/867388#M342574</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2023-03-31T07:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: Add adjusted variables to the %macro WMWodds program, such as age, gender</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-adjusted-variables-to-the-macro-WMWodds-program-such-as-age/m-p/867392#M342576</link>
      <description>&lt;P&gt;Thank you for your advice. I want to add adjusted variables in the process of&amp;nbsp;proc logistic. The code as follows:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;%macro WMWodds(_DATASET, _GROUP, _Y) ;
ods listing close ;
proc npar1way data=&amp;amp;_DATASET. correct=no ;
class &amp;amp;_GROUP. ;
var &amp;amp;_Y. ;
ods output WilcoxonScores=WS(keep=Class SumOfScores) ;
run ;
proc transpose data=WS out=FLAG prefix=WSCORE_ ;
var SumOfScores ;
id CLASS ;
run ;
data _NULL_ ;
set FLAG ;
if (WSCORE_1 &amp;gt;= WSCORE_2) then call symput("_FLAG",1);
else call symput("_FLAG",2);
run ;
proc logistic data=&amp;amp;_DATASET. ;
class &amp;amp;_GROUP. ;
model &amp;amp;_GROUP.=&amp;amp;_Y. ;
roc ;
ods output ROCAssociation=AUROC ;
run ;
ods listing ;

data WMWODDS ;
set AUROC ;
if (&amp;amp;_FLAG=1) then do ;
WMWOdds=Area/(1-Area) ;
SE =StdErr/(1-Area)**2 ;
LnWMW =log(Area/(1-Area)) ;
LnSE =StdErr/(Area*(1-Area)) ;
end ;
else do ;
WMWOdds=(1-Area)/Area ;
SE =StdErr/Area**2 ;
LnWMW =log((1-Area)/Area) ;
LnSE =StdErr/(Area*(1-Area)) ;
end ;
z =quantile("NORMAL",0.975) ;
LowerCI =WMWOdds - z*SE ;
UpperCI =WMWOdds + z*SE ;
LowerCI_exp=exp(LnWMW - z*LnSE) ;
UpperCI_exp=exp(LnWMW + z*LnSE) ;
if _n_=1;
keep Area StdErr WMWOdds SE LowerCI UpperCI
LowerCI_exp UpperCI_exp ;
run ;
title "&amp;amp;_DATASET." ;
proc print noobs ;
run ;
%mend ;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 07:42:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-adjusted-variables-to-the-macro-WMWodds-program-such-as-age/m-p/867392#M342576</guid>
      <dc:creator>YoloY</dc:creator>
      <dc:date>2023-03-31T07:42:54Z</dc:date>
    </item>
  </channel>
</rss>

