<?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: Logistic regression with different independent variables (categorial, dichotom, continouing) in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Logistic-regression-with-different-independent-variables/m-p/81392#M23451</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Steve Denham&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tahnk you for your helpful reply. I am sorry for getting back to you this late. I ended up doing the 'proc logistic' and worked it over over with a member of the statistical department. But thank you anyway.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anders Lødrup&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Dec 2012 08:39:21 GMT</pubDate>
    <dc:creator>loedrup_ab</dc:creator>
    <dc:date>2012-12-19T08:39:21Z</dc:date>
    <item>
      <title>Logistic regression with different independent variables (categorial, dichotom, continouing)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Logistic-regression-with-different-independent-variables/m-p/81390#M23449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="text-indent: 0in;"&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri; color: black;"&gt;Dear anyone&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: 0in;"&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri; color: black;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: 0in;"&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri; color: black;"&gt;I need to do a logisc regression. My outcome is dichotom. The independent varialbels have different characters, as shown in the spreadsheet. I am in doubt - which SAS code(s) should I use.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: 0in;"&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri; color: black;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: 0in;"&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri; color: black;"&gt;I hope you can help&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: 0in;"&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri; color: black;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: 0in;"&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri; color: black;"&gt;Sincerely&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: 0in;"&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri; color: black;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: 0in;"&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri; color: black;"&gt;Anders&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: 0in;"&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="413"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="64"&gt;ID&lt;/TD&gt;&lt;TD width="64"&gt;outcome&lt;/TD&gt;&lt;TD width="110"&gt;Var1 (categorial)&lt;/TD&gt;&lt;TD width="111"&gt;Var 2 (dichotom)&lt;/TD&gt;&lt;TD width="64"&gt;Var 3 (continuing)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;11&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;TD&gt;a&lt;/TD&gt;&lt;TD align="right"&gt;45&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;12&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;3&lt;/TD&gt;&lt;TD&gt;b&lt;/TD&gt;&lt;TD align="right"&gt;65&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;13&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;TD&gt;b&lt;/TD&gt;&lt;TD align="right"&gt;34&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;14&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;TD&gt;a&lt;/TD&gt;&lt;TD align="right"&gt;56&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;15&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD&gt;b&lt;/TD&gt;&lt;TD align="right"&gt;32&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;16&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;TD align="right"&gt;3&lt;/TD&gt;&lt;TD&gt;b&lt;/TD&gt;&lt;TD align="right"&gt;56&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;17&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;TD&gt;b&lt;/TD&gt;&lt;TD align="right"&gt;67&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;18&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD&gt;a&lt;/TD&gt;&lt;TD align="right"&gt;54&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;19&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD&gt;a&lt;/TD&gt;&lt;TD align="right"&gt;67&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;20&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;TD&gt;b&lt;/TD&gt;&lt;TD align="right"&gt;54&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2012 08:07:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Logistic-regression-with-different-independent-variables/m-p/81390#M23449</guid>
      <dc:creator>loedrup_ab</dc:creator>
      <dc:date>2012-11-27T08:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic regression with different independent variables (categorial, dichotom, continouing)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Logistic-regression-with-different-independent-variables/m-p/81391#M23450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This should get you started, but beware, there are a lot of pitfalls in this area, the primary being enough outcomes of interest for the number of variables included in the model.&amp;nbsp; I am choosing PROC GENMOD because of the presence of the categorical variables Var1 and Var2, and the ease of specifying their effects in PROC GENMOD as opposed to PROC LOGISTIC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc genmod data=yourdata;&lt;/P&gt;&lt;P&gt;class var1 var2;&lt;/P&gt;&lt;P&gt;model outcome=var1 var2 var3/dist=binary solution;&lt;/P&gt;&lt;P&gt;lsmeans var1 var2/ilink;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other things to consider--you have a continuous variable.&amp;nbsp; The analysis I have given here is referred to in the literature as analysis of covariance, and this particular model assumes that the "slope" due to var3 is constant across all levels of var1 and var2.&amp;nbsp; Without knowing how much data is available, I don't know whether you can efficiently investigate whether or not there is evidence for this assumption.&amp;nbsp; Anyway, this should get you started.&amp;nbsp; Stop back in when you have tried it, and see if it is giving you answers that are interpretable.&amp;nbsp; Be sure to read the documentation, not only for PROC GENMOD, but for PROC GLIMMIX and PROC LOGISTIC to get an understanding of exactly what SAS is doing in each of these.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2012 12:35:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Logistic-regression-with-different-independent-variables/m-p/81391#M23450</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2012-11-27T12:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic regression with different independent variables (categorial, dichotom, continouing)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Logistic-regression-with-different-independent-variables/m-p/81392#M23451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Steve Denham&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tahnk you for your helpful reply. I am sorry for getting back to you this late. I ended up doing the 'proc logistic' and worked it over over with a member of the statistical department. But thank you anyway.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anders Lødrup&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2012 08:39:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Logistic-regression-with-different-independent-variables/m-p/81392#M23451</guid>
      <dc:creator>loedrup_ab</dc:creator>
      <dc:date>2012-12-19T08:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic regression with different independent variables (categorial, dichotom, continouing)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Logistic-regression-with-different-independent-variables/m-p/81393#M23452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Steve Denham,&lt;/P&gt;&lt;P&gt;I came to the same problem,after I posted&lt;/P&gt;&lt;P&gt;(&lt;A _jive_internal="true" href="https://communities.sas.com/message/148953#148953"&gt;Proc Logisitic result not include ordinal variables&lt;/A&gt;)I&amp;nbsp; found your reply ,very useful.&lt;/P&gt;&lt;P&gt;Thus ,I treat those class variables as continuous,code as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc logistic data=slide.sb_vm_training outmodel=slide.model;&lt;BR /&gt;model dv = N2&amp;nbsp; N3&amp;nbsp; N4&amp;nbsp; N5&amp;nbsp; N6&amp;nbsp; N7&amp;nbsp; N10&amp;nbsp; N11&amp;nbsp; N12&amp;nbsp; N13 Prin1 Prin2 Prin3&amp;nbsp; factor1 factor2 factor3 factor4 factor5 factor6 factor7 factor8 /selection=stepwise ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt; then the N variable did into the model.&lt;/P&gt;&lt;P&gt;Can you give a brief explaination why proc logistic has shortcoming in nominal and continuous variables combined?&lt;/P&gt;&lt;P&gt;or can you give me some papers to read?&lt;/P&gt;&lt;P&gt;Very thanks.&lt;/P&gt;&lt;P&gt;Dawn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Dec 2012 07:23:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Logistic-regression-with-different-independent-variables/m-p/81393#M23452</guid>
      <dc:creator>bbb_NG</dc:creator>
      <dc:date>2012-12-31T07:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic regression with different independent variables (categorial, dichotom, continouing)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Logistic-regression-with-different-independent-variables/m-p/81394#M23453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Point one: Nominal and continuous combined often leads to quasi-separation.&amp;nbsp; For papers on this problem, read the documentation for PROC LOGISTIC, and follow the references given there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Point two: Search this site and the SAS-L listserv for comments regarding stepwise selection of variables.&amp;nbsp; In particular, find the paper by Flom and Cassell at &lt;A href="http://www.nesug.org/proceedings/nesug07/sa/sa07.pdf"&gt;http://www.nesug.org/proceedings/nesug07/sa/sa07.pdf&lt;/A&gt;.&amp;nbsp; Stepwise has a variety of problems, not the least of which is that any of the p values associated with the parameters are wrong, as the distributional assumptions are not met.&amp;nbsp; They are also biased towards zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Dec 2012 12:59:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Logistic-regression-with-different-independent-variables/m-p/81394#M23453</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2012-12-31T12:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic regression with different independent variables (categorial, dichotom, continouing)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Logistic-regression-with-different-independent-variables/m-p/81395#M23454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Steve Denham,&lt;/P&gt;&lt;P&gt;Thank u for your wonderful explanation.&lt;/P&gt;&lt;P&gt;Can I ask one more question?&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;proc princomp data=slide.sb_vm10 cov outstat=temp_prin1;&lt;/P&gt;&lt;P&gt;var&amp;nbsp; c1-c45;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;for eg variables group A with large scope is within (-1M,1M),variables group B with small scope&amp;nbsp; is within (-1,1),&lt;/P&gt;&lt;P&gt;it seems that the coefficient for Eigenvectors like prin1 will be Zero for those variables group B.&lt;/P&gt;&lt;P&gt;Do u know in mind how to deal with such things?&lt;/P&gt;&lt;P&gt;Thx in advance.&lt;/P&gt;&lt;P&gt;Dawn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2013 08:02:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Logistic-regression-with-different-independent-variables/m-p/81395#M23454</guid>
      <dc:creator>bbb_NG</dc:creator>
      <dc:date>2013-01-04T08:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic regression with different independent variables (categorial, dichotom, continouing)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Logistic-regression-with-different-independent-variables/m-p/81396#M23455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rescale!&amp;nbsp; Remember that prinicipal components and the resulting eigenvalues are based on the amount of variability explained.&amp;nbsp; If all of the variability is in group A, then the component will only have a loading on A, as B contributes almost nothing to the total variability.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2013 12:12:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Logistic-regression-with-different-independent-variables/m-p/81396#M23455</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2013-01-04T12:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic regression with different independent variables (categorial, dichotom, continouing)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Logistic-regression-with-different-independent-variables/m-p/81397#M23456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Steve,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Got it.Very thank you and very helpful response!!!&lt;/P&gt;&lt;P&gt;Dawn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Jan 2013 01:02:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Logistic-regression-with-different-independent-variables/m-p/81397#M23456</guid>
      <dc:creator>bbb_NG</dc:creator>
      <dc:date>2013-01-05T01:02:38Z</dc:date>
    </item>
  </channel>
</rss>

