<?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 age adjusted ACU in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/age-adjusted-ACU/m-p/658185#M197256</link>
    <description>&lt;P&gt;I am trying to find some measurements based on disease adjusting for age.&lt;/P&gt;&lt;P&gt;2 groups - has disease and healthy. The mean difference in age is about 10 years.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 4 different types of measurements but I don't know to do an AUC adjusting for age.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;%modstyle(name=linestyle, parent=statistical, type=CLM, linestyles=Solid MediumDash Solid)
ods listing style=linestyle;

proc template; 
define statgraph Graphics.AUC; 
   notes "Receiver Operating Characteristic Overlaid Curves";
   dynamic _byline_ _bytitle_ _byfootnote_;
   BeginGraph / designwidth=defaultDesignHeight;
      entrytitle 'Age Adjusted AUC of vessel parameters';
	  entryfootnote '*from a logistic regression controlling for inter-eye correlation*';
      layout overlayequated / equatetype=square yaxisopts=(gridDisplay=auto_on label="Sensitivity" shortlabel="TPF" offsetmin=0.05 offsetmax=0.05) 
xaxisopts=(gridDisplay=auto_on label="1 - Specificity" shortlabel="FPF" offsetmin=0.05
         offsetmax=0.05) commonaxisopts=(tickvaluelist=(0 .25 .5 .75 1) viewmin=0 viewmax=1);
         lineparm x=0 y=0 slope=1 / clip=true extend=true;
         seriesplot y=_SENSIT_ x=_1MSPEC_ / tip=(group y x) group=_ROC_ index=_GROUP_ name="Step" primary=true;
         discretelegend "Step" / title="ROC Curve (Area)";
      endlayout;
      if (_BYTITLE_)
         entrytitle _BYLINE_ / textattrs=GRAPHVALUETEXT;
      else
         if (_BYFOOTNOTE_)
            entryfootnote halign=left _BYLINE_;
         endif;
      endif;
   EndGraph;
end;run;


proc genmod data=rr_g;
class PID;
model age=VAD_A;
repeated subject=PID;
output out=out1 predicted=pre1;run;

proc genmod data=rr_g;
class PID;
model age=Flux_a;
repeated subject=PID;
output out=out2 predicted=pre2;run;

proc sort data=out1;by PID; proc sort data=out2; by PID; run;
data pregee;merge out1 out2 ;by PID;if not missing(pre1) and not missing(pre2);run;

ods graphics on; ods trace on; ods select ROCOverlay;
ods output ROCOverlay=ROCOverlaydata;proc logistic data=pregee;model age(event='1')=;
roc 'VAD' pred=pre1;
roc 'Flux' pred=pre2;
roccontrast/estimate=allpairs; run;

data rocoverlaydata2;set rocoverlaydata;if _ROC_='Model  (0.5000)' then delete;run;

proc sgrender data = rocoverlaydata2 template = Graphics.AUC; run;

ods graphics off; ods html close;&lt;/PRE&gt;</description>
    <pubDate>Fri, 12 Jun 2020 20:14:52 GMT</pubDate>
    <dc:creator>jaelee22</dc:creator>
    <dc:date>2020-06-12T20:14:52Z</dc:date>
    <item>
      <title>age adjusted ACU</title>
      <link>https://communities.sas.com/t5/SAS-Programming/age-adjusted-ACU/m-p/658185#M197256</link>
      <description>&lt;P&gt;I am trying to find some measurements based on disease adjusting for age.&lt;/P&gt;&lt;P&gt;2 groups - has disease and healthy. The mean difference in age is about 10 years.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 4 different types of measurements but I don't know to do an AUC adjusting for age.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;%modstyle(name=linestyle, parent=statistical, type=CLM, linestyles=Solid MediumDash Solid)
ods listing style=linestyle;

proc template; 
define statgraph Graphics.AUC; 
   notes "Receiver Operating Characteristic Overlaid Curves";
   dynamic _byline_ _bytitle_ _byfootnote_;
   BeginGraph / designwidth=defaultDesignHeight;
      entrytitle 'Age Adjusted AUC of vessel parameters';
	  entryfootnote '*from a logistic regression controlling for inter-eye correlation*';
      layout overlayequated / equatetype=square yaxisopts=(gridDisplay=auto_on label="Sensitivity" shortlabel="TPF" offsetmin=0.05 offsetmax=0.05) 
xaxisopts=(gridDisplay=auto_on label="1 - Specificity" shortlabel="FPF" offsetmin=0.05
         offsetmax=0.05) commonaxisopts=(tickvaluelist=(0 .25 .5 .75 1) viewmin=0 viewmax=1);
         lineparm x=0 y=0 slope=1 / clip=true extend=true;
         seriesplot y=_SENSIT_ x=_1MSPEC_ / tip=(group y x) group=_ROC_ index=_GROUP_ name="Step" primary=true;
         discretelegend "Step" / title="ROC Curve (Area)";
      endlayout;
      if (_BYTITLE_)
         entrytitle _BYLINE_ / textattrs=GRAPHVALUETEXT;
      else
         if (_BYFOOTNOTE_)
            entryfootnote halign=left _BYLINE_;
         endif;
      endif;
   EndGraph;
end;run;


proc genmod data=rr_g;
class PID;
model age=VAD_A;
repeated subject=PID;
output out=out1 predicted=pre1;run;

proc genmod data=rr_g;
class PID;
model age=Flux_a;
repeated subject=PID;
output out=out2 predicted=pre2;run;

proc sort data=out1;by PID; proc sort data=out2; by PID; run;
data pregee;merge out1 out2 ;by PID;if not missing(pre1) and not missing(pre2);run;

ods graphics on; ods trace on; ods select ROCOverlay;
ods output ROCOverlay=ROCOverlaydata;proc logistic data=pregee;model age(event='1')=;
roc 'VAD' pred=pre1;
roc 'Flux' pred=pre2;
roccontrast/estimate=allpairs; run;

data rocoverlaydata2;set rocoverlaydata;if _ROC_='Model  (0.5000)' then delete;run;

proc sgrender data = rocoverlaydata2 template = Graphics.AUC; run;

ods graphics off; ods html close;&lt;/PRE&gt;</description>
      <pubDate>Fri, 12 Jun 2020 20:14:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/age-adjusted-ACU/m-p/658185#M197256</guid>
      <dc:creator>jaelee22</dc:creator>
      <dc:date>2020-06-12T20:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: age adjusted ACU</title>
      <link>https://communities.sas.com/t5/SAS-Programming/age-adjusted-ACU/m-p/658206#M197262</link>
      <description>If age is your outcome variable (left hand side of model statement) how you can you adjust for it as well?</description>
      <pubDate>Fri, 12 Jun 2020 20:32:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/age-adjusted-ACU/m-p/658206#M197262</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-06-12T20:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: age adjusted ACU</title>
      <link>https://communities.sas.com/t5/SAS-Programming/age-adjusted-ACU/m-p/658207#M197263</link>
      <description>&lt;P&gt;I guess my model is wrong. The outcome variable should measured parameters.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Should it be switched?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2020 20:37:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/age-adjusted-ACU/m-p/658207#M197263</guid>
      <dc:creator>jaelee22</dc:creator>
      <dc:date>2020-06-12T20:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: age adjusted ACU</title>
      <link>https://communities.sas.com/t5/SAS-Programming/age-adjusted-ACU/m-p/658213#M197266</link>
      <description>Given what you've posted here I don't know. &lt;BR /&gt;Do you know how to do logistic regression with repeated data?</description>
      <pubDate>Fri, 12 Jun 2020 20:51:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/age-adjusted-ACU/m-p/658213#M197266</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-06-12T20:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: age adjusted ACU</title>
      <link>https://communities.sas.com/t5/SAS-Programming/age-adjusted-ACU/m-p/658215#M197267</link>
      <description>&lt;P&gt;I have used Proc Genmod in the past do to a logistic regression with repeated data. But I have never got a formal training in SAS, mostly reading and forums.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2020 20:54:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/age-adjusted-ACU/m-p/658215#M197267</guid>
      <dc:creator>jaelee22</dc:creator>
      <dc:date>2020-06-12T20:54:03Z</dc:date>
    </item>
  </channel>
</rss>

