<?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 can I get odds ratio estimates and confidence intervals for multiple levels with a variable in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-get-odds-ratio-estimates-and-confidence-intervals-for/m-p/455766#M23803</link>
    <description>&lt;P&gt;Your code doesn't include any reference to maltreatment and your model doesn't include any reference to PID...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Assuming that all your independent variables are classes, you could start with:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;TITLE1 "Single-Level Logistic Model Predicting Chronic Pain";

PROC GLIMMIX DATA=work.pain NOCLPRINT NAMELEN=100 METHOD=QUAD (QPOINTS=15) GRADIENT;
CLASS age_c Gender GroupHome RndChron_c; 
MODEL chronicPain (event="1") = age_c Gender GroupHome RndChron_c / SOLUTION LINK=LOGIT DIST=BINARY DDFM=Satterthwaite;
lsmeans age_c / oddsratio;
lsmeans gender / oddsratio;
lsmeans groupHome / oddsratio;
lsmeans RndChron_c / oddsratio;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;(untested)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 19 Apr 2018 21:47:00 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2018-04-19T21:47:00Z</dc:date>
    <item>
      <title>How can I get odds ratio estimates and confidence intervals for multiple levels with a variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-get-odds-ratio-estimates-and-confidence-intervals-for/m-p/455739#M23802</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using SAS Studio. I'm trying to compute the odds ratios and confidence intervals for all of the levels within a variable. For example, I am looking at how maltreatment exposure predicts chronic pain. Maltreatment exposure has four levels: 1, 2, 3, and 4, to indicate&amp;nbsp;frequency of occurrence. I want to&amp;nbsp;see what the odds are for developing chronic pain if someone has a maltreatment frequency of 1, a maltreatment frequency of 2, and so on. I have&amp;nbsp;tried both PROC LOGISTIC and PROC GLIMMIX, but I only get one odds ratio, instead of an odds ratio for each level of the variable.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My predictors include age (8-19 years), gender (0 or 1), placement type (1 or 1), and maltreatment exposure (1,2,3,and 4). My outcome is chronic pain (0 or 1). I would like to look at the odds of chronic pain for all of the levels of all of my variables.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TITLE1 "Single-Level Logistic Model Predicting Chronic Pain";&lt;BR /&gt;PROC GLIMMIX DATA=work.pain NOCLPRINT NAMELEN=100 METHOD=QUAD (QPOINTS=15) GRADIENT;&lt;BR /&gt;CLASS PID; * Descending makes us predict the 1 instead of the default-predicted 0;&lt;BR /&gt;MODEL chronicpain (DESCENDING) = age_c Gender GroupHome RndChron_c / SOLUTION LINK=LOGIT DIST=BINARY DDFM=Satterthwaite ODDSRATIO;&lt;BR /&gt;ESTIMATE "Intercept" intercept 1 / ILINK; * ILINK is inverse link (to un-logit);&lt;BR /&gt;ESTIMATE "Chronic Pain if Age=9" intercept 1 age_c 1 / ILINK;&lt;BR /&gt;ESTIMATE "Chronic Pain if Age=10" intercept 1 age_c 2 / ILINK;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lindsay&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Apr 2018 19:40:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-get-odds-ratio-estimates-and-confidence-intervals-for/m-p/455739#M23802</guid>
      <dc:creator>lindsaypaige</dc:creator>
      <dc:date>2018-04-19T19:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get odds ratio estimates and confidence intervals for multiple levels with a variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-get-odds-ratio-estimates-and-confidence-intervals-for/m-p/455766#M23803</link>
      <description>&lt;P&gt;Your code doesn't include any reference to maltreatment and your model doesn't include any reference to PID...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Assuming that all your independent variables are classes, you could start with:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;TITLE1 "Single-Level Logistic Model Predicting Chronic Pain";

PROC GLIMMIX DATA=work.pain NOCLPRINT NAMELEN=100 METHOD=QUAD (QPOINTS=15) GRADIENT;
CLASS age_c Gender GroupHome RndChron_c; 
MODEL chronicPain (event="1") = age_c Gender GroupHome RndChron_c / SOLUTION LINK=LOGIT DIST=BINARY DDFM=Satterthwaite;
lsmeans age_c / oddsratio;
lsmeans gender / oddsratio;
lsmeans groupHome / oddsratio;
lsmeans RndChron_c / oddsratio;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;(untested)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Apr 2018 21:47:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-get-odds-ratio-estimates-and-confidence-intervals-for/m-p/455766#M23803</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2018-04-19T21:47:00Z</dc:date>
    </item>
  </channel>
</rss>

