<?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 odds ratio and class interval for numeric values(Dependent and independent) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/odds-ratio-and-class-interval-for-numeric-values-Dependent-and/m-p/517740#M140043</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to evaluate the Odds Ratio and Confidence Interval for Numeric variables,&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input ID Age BMI;
cards;
813281 47.2 26.81359045
813283 50 20.9839876
813341 46.8 25.21625331
813456 58.5 27.11058264
817845 56.8 24.8357635
818038 45.1 28.72678773
818454 42.1 24.50894577
;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I Tried like&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc reg data = have PLOTS(MAXPOINTS=15000);
model age = BMI;
output out = get 
p = Predict1 
r = residal;
run;

proc logistic data=have;
model age = BMI / expb;
run;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I gone with logistic regression,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But we should&amp;nbsp;use logistic regression when the&amp;nbsp;dependent variable is binary (0/ 1, True/ False, Yes/ No) in nature. Here the values not in range. (so Logistic won't work to get the right values)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Could anyone please let me know how to get odd ratio and Confidence Intervals.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 01 Dec 2018 11:33:03 GMT</pubDate>
    <dc:creator>Sathish_jammy</dc:creator>
    <dc:date>2018-12-01T11:33:03Z</dc:date>
    <item>
      <title>odds ratio and class interval for numeric values(Dependent and independent)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/odds-ratio-and-class-interval-for-numeric-values-Dependent-and/m-p/517740#M140043</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to evaluate the Odds Ratio and Confidence Interval for Numeric variables,&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input ID Age BMI;
cards;
813281 47.2 26.81359045
813283 50 20.9839876
813341 46.8 25.21625331
813456 58.5 27.11058264
817845 56.8 24.8357635
818038 45.1 28.72678773
818454 42.1 24.50894577
;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I Tried like&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc reg data = have PLOTS(MAXPOINTS=15000);
model age = BMI;
output out = get 
p = Predict1 
r = residal;
run;

proc logistic data=have;
model age = BMI / expb;
run;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I gone with logistic regression,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But we should&amp;nbsp;use logistic regression when the&amp;nbsp;dependent variable is binary (0/ 1, True/ False, Yes/ No) in nature. Here the values not in range. (so Logistic won't work to get the right values)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Could anyone please let me know how to get odd ratio and Confidence Intervals.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Dec 2018 11:33:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/odds-ratio-and-class-interval-for-numeric-values-Dependent-and/m-p/517740#M140043</guid>
      <dc:creator>Sathish_jammy</dc:creator>
      <dc:date>2018-12-01T11:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: odds ratio and class interval for numeric values(Dependent and independent)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/odds-ratio-and-class-interval-for-numeric-values-Dependent-and/m-p/520073#M140979</link>
      <description>&lt;P&gt;Yes as you said to follow the Odds Ratio approach you need to create a binary variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have2;
	set have;
	obese = (read&amp;gt;=30);
run;



proc logistic data = have2;
model obese = age ;
run ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;But I highly recommend you review the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stats.idre.ucla.edu/sas/dae/logit-regression/" target="_self"&gt;https://stats.idre.ucla.edu/sas/dae/logit-regression/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stats.idre.ucla.edu/sas/faq/in-proc-logistic-why-arent-the-coefficients-consistent-with-the-odds-ratios/" target="_self"&gt;https://stats.idre.ucla.edu/sas/faq/in-proc-logistic-why-arent-the-coefficients-consistent-with-the-odds-ratios/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 17:59:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/odds-ratio-and-class-interval-for-numeric-values-Dependent-and/m-p/520073#M140979</guid>
      <dc:creator>rbikes</dc:creator>
      <dc:date>2018-12-10T17:59:24Z</dc:date>
    </item>
  </channel>
</rss>

