<?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 Mulitlevel independent variable in proc logistic in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Mulitlevel-independent-variable-in-proc-logistic/m-p/34780#M1448</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I have a 4 level- variable that I want to use as one of the independent variable (&lt;SPAN style="background-color: yellow;"&gt;renalicd9 )&lt;/SPAN&gt; in proc logiotic model,&lt;/P&gt;&lt;P&gt;The variable is coded as &lt;/P&gt;&lt;P&gt;0, (Normal renal finction)&lt;/P&gt;&lt;P&gt;1- Stage 3 chrnoic renal disease&lt;/P&gt;&lt;P&gt;2. Stage 4 chrnoic renal disease&lt;/P&gt;&lt;P&gt;3- Stage 5 chr rnal dis with dialysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to obtain the Odds ratio for mortality (variable "died")&amp;nbsp; for each of this category compared against those with normal renal function.(code = 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 12pt; text-decoration: underline; font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;Can I use this multilevel variable as it is in the regression model or should I convert into 3 separate binary variables (coded as 0 and 1) and the run 3 different models? &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 12pt; text-decoration: underline; font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;What would give me&amp;nbsp; correct results?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 12pt; text-decoration: underline; font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At present after including the multilevel variable (&lt;SPAN style="color: #ff0000;"&gt;highlighted&lt;/SPAN&gt;) the the SAS code looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 14pt; background-color: white; font-family: Calibri;"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; font-size: 14pt; background-color: white; font-family: Calibri;"&gt;logistic&lt;/STRONG&gt; &lt;SPAN style="background-color: white; font-family: Calibri; color: blue; font-size: 14pt;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: black; font-size: 14pt;"&gt; =library.nismicathcabg4 &lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: blue; font-size: 14pt;"&gt;descending&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: black; font-size: 14pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: blue; font-size: 14pt;"&gt;class&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: black; font-size: 14pt;"&gt;&amp;nbsp; female&amp;nbsp; (&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: blue; font-size: 14pt;"&gt;ref&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: black; font-size: 14pt;"&gt;= first) &lt;SPAN style="background-color: yellow;"&gt;renalicd9 (&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color: yellow; font-family: Calibri; color: blue; font-size: 14pt;"&gt;ref&lt;/SPAN&gt;&lt;SPAN style="background-color: yellow; font-family: Calibri; color: black; font-size: 14pt;"&gt;=first&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: black; font-size: 14pt;"&gt;) dm dmcx htn_c&amp;nbsp; aids alcohol ANEMDEF arth race1(&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: blue; font-size: 14pt;"&gt;ref&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: black; font-size: 14pt;"&gt;=first)&amp;nbsp; ZIPINC_QRTL(&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: blue; font-size: 14pt;"&gt;ref&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: black; font-size: 14pt;"&gt;=first) hosp_location h_contrl(&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: blue; font-size: 14pt;"&gt;ref&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: black; font-size: 14pt;"&gt;=first) hosp_teach &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: black; font-size: 14pt;"&gt;bldloss chf chrnlung coag depress drug hypothy liver lymph lytes mets neuro obese para perivasc psych pulmcirc renlfail tumor &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: black; font-size: 14pt;"&gt;ulcer valve wghtloss cararrhythmia/&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: blue; font-size: 14pt;"&gt;param&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: black; font-size: 14pt;"&gt;=ref;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: blue; font-size: 14pt;"&gt;model&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: black; font-size: 14pt;"&gt; died=&amp;nbsp; age female dm dmcx htn_c&amp;nbsp; aids alcohol ANEMDEF arth&amp;nbsp; race1 zipinc_qrtl hosp_location h_contrl hosp_teach&amp;nbsp; TOTAL_DISC&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: black; font-size: 14pt;"&gt;bldloss chf chrnlung coag depress drug hypothy liver lymph lytes mets neuro obese para perivasc psych pulmcirc &lt;SPAN style="background-color: yellow;"&gt;renalicd9&lt;/SPAN&gt; tumor ulcer valve wghtloss cararrhythmia;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: blue; font-size: 14pt;"&gt;weight&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: black; font-size: 14pt;"&gt; discwt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: blue; font-size: 14pt;"&gt;title&lt;/SPAN&gt; &lt;SPAN style="background-color: white; font-family: Calibri; color: purple; font-size: 14pt;"&gt;'Logi Reg in-hosp mortality vs renalicd9 in MI patients with race + income'&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: black; font-size: 14pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 14pt; background-color: white; font-family: Calibri;"&gt;run&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: black; font-size: 14pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 14pt; background-color: white; font-family: Calibri;"&gt;quit&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;The output i got after running this is attached here..&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Mar 2012 21:01:15 GMT</pubDate>
    <dc:creator>Ashwini_uci</dc:creator>
    <dc:date>2012-03-16T21:01:15Z</dc:date>
    <item>
      <title>Mulitlevel independent variable in proc logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Mulitlevel-independent-variable-in-proc-logistic/m-p/34780#M1448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I have a 4 level- variable that I want to use as one of the independent variable (&lt;SPAN style="background-color: yellow;"&gt;renalicd9 )&lt;/SPAN&gt; in proc logiotic model,&lt;/P&gt;&lt;P&gt;The variable is coded as &lt;/P&gt;&lt;P&gt;0, (Normal renal finction)&lt;/P&gt;&lt;P&gt;1- Stage 3 chrnoic renal disease&lt;/P&gt;&lt;P&gt;2. Stage 4 chrnoic renal disease&lt;/P&gt;&lt;P&gt;3- Stage 5 chr rnal dis with dialysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to obtain the Odds ratio for mortality (variable "died")&amp;nbsp; for each of this category compared against those with normal renal function.(code = 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 12pt; text-decoration: underline; font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;Can I use this multilevel variable as it is in the regression model or should I convert into 3 separate binary variables (coded as 0 and 1) and the run 3 different models? &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 12pt; text-decoration: underline; font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;What would give me&amp;nbsp; correct results?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 12pt; text-decoration: underline; font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At present after including the multilevel variable (&lt;SPAN style="color: #ff0000;"&gt;highlighted&lt;/SPAN&gt;) the the SAS code looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 14pt; background-color: white; font-family: Calibri;"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; font-size: 14pt; background-color: white; font-family: Calibri;"&gt;logistic&lt;/STRONG&gt; &lt;SPAN style="background-color: white; font-family: Calibri; color: blue; font-size: 14pt;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: black; font-size: 14pt;"&gt; =library.nismicathcabg4 &lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: blue; font-size: 14pt;"&gt;descending&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: black; font-size: 14pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: blue; font-size: 14pt;"&gt;class&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: black; font-size: 14pt;"&gt;&amp;nbsp; female&amp;nbsp; (&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: blue; font-size: 14pt;"&gt;ref&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: black; font-size: 14pt;"&gt;= first) &lt;SPAN style="background-color: yellow;"&gt;renalicd9 (&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color: yellow; font-family: Calibri; color: blue; font-size: 14pt;"&gt;ref&lt;/SPAN&gt;&lt;SPAN style="background-color: yellow; font-family: Calibri; color: black; font-size: 14pt;"&gt;=first&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: black; font-size: 14pt;"&gt;) dm dmcx htn_c&amp;nbsp; aids alcohol ANEMDEF arth race1(&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: blue; font-size: 14pt;"&gt;ref&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: black; font-size: 14pt;"&gt;=first)&amp;nbsp; ZIPINC_QRTL(&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: blue; font-size: 14pt;"&gt;ref&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: black; font-size: 14pt;"&gt;=first) hosp_location h_contrl(&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: blue; font-size: 14pt;"&gt;ref&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: black; font-size: 14pt;"&gt;=first) hosp_teach &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: black; font-size: 14pt;"&gt;bldloss chf chrnlung coag depress drug hypothy liver lymph lytes mets neuro obese para perivasc psych pulmcirc renlfail tumor &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: black; font-size: 14pt;"&gt;ulcer valve wghtloss cararrhythmia/&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: blue; font-size: 14pt;"&gt;param&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: black; font-size: 14pt;"&gt;=ref;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: blue; font-size: 14pt;"&gt;model&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: black; font-size: 14pt;"&gt; died=&amp;nbsp; age female dm dmcx htn_c&amp;nbsp; aids alcohol ANEMDEF arth&amp;nbsp; race1 zipinc_qrtl hosp_location h_contrl hosp_teach&amp;nbsp; TOTAL_DISC&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: black; font-size: 14pt;"&gt;bldloss chf chrnlung coag depress drug hypothy liver lymph lytes mets neuro obese para perivasc psych pulmcirc &lt;SPAN style="background-color: yellow;"&gt;renalicd9&lt;/SPAN&gt; tumor ulcer valve wghtloss cararrhythmia;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: blue; font-size: 14pt;"&gt;weight&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: black; font-size: 14pt;"&gt; discwt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: blue; font-size: 14pt;"&gt;title&lt;/SPAN&gt; &lt;SPAN style="background-color: white; font-family: Calibri; color: purple; font-size: 14pt;"&gt;'Logi Reg in-hosp mortality vs renalicd9 in MI patients with race + income'&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: black; font-size: 14pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 14pt; background-color: white; font-family: Calibri;"&gt;run&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: black; font-size: 14pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 14pt; background-color: white; font-family: Calibri;"&gt;quit&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;The output i got after running this is attached here..&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2012 21:01:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Mulitlevel-independent-variable-in-proc-logistic/m-p/34780#M1448</guid>
      <dc:creator>Ashwini_uci</dc:creator>
      <dc:date>2012-03-16T21:01:15Z</dc:date>
    </item>
    <item>
      <title>Mulitlevel independent variable in proc logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Mulitlevel-independent-variable-in-proc-logistic/m-p/34781#M1449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Recoding as binary is effectively what SAS does. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;See the design matrix for the variable recoded on page1/2 of your output and your estimates on page 10. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YOU DO NOT NEED TO RUN THREE DIFF MODELS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2012 21:15:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Mulitlevel-independent-variable-in-proc-logistic/m-p/34781#M1449</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2012-03-16T21:15:24Z</dc:date>
    </item>
    <item>
      <title>Mulitlevel independent variable in proc logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Mulitlevel-independent-variable-in-proc-logistic/m-p/34782#M1450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks Reeza. Yes, I already had a look at the design variables and estimates and it looks good. But as i never used a multilevel indepedent variable in the model before, just wanted to confirm if it is alright to do and if the results are correct. &lt;/P&gt;&lt;P&gt;So, great, it means i can report the 3 Odds Ratios from page 10 of the output..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks much.&lt;/P&gt;&lt;P&gt;Ashwini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2012 21:26:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Mulitlevel-independent-variable-in-proc-logistic/m-p/34782#M1450</guid>
      <dc:creator>Ashwini_uci</dc:creator>
      <dc:date>2012-03-16T21:26:59Z</dc:date>
    </item>
  </channel>
</rss>

