<?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 Analysis in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Logistic-regression-Analysis/m-p/898110#M44496</link>
    <description>As Paige said using ODDSRATIO statement.&lt;BR /&gt;&lt;BR /&gt;proc logistic data=sashelp.heart(obs=1000);&lt;BR /&gt;class sex bp_status;&lt;BR /&gt;model status=sex bp_status weight height sex*height/clparm=wald clodds=wald ;&lt;BR /&gt;oddsratio height/at(sex=all) cl=wald;&lt;BR /&gt;run;&lt;BR /&gt;</description>
    <pubDate>Wed, 11 Oct 2023 11:42:09 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2023-10-11T11:42:09Z</dc:date>
    <item>
      <title>Logistic regression Analysis</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Logistic-regression-Analysis/m-p/897759#M44472</link>
      <description>Hi Team,&lt;BR /&gt;&lt;BR /&gt;I have a new request to create a statistics table with logistic regression. I have attached a sample with this for reference&lt;BR /&gt;&lt;BR /&gt;Expect Somme insights on this since Iam new to this scenario&lt;BR /&gt;&lt;BR /&gt;Covariate Estimate odds ratio 95%ci waldchisqr pvalue&lt;BR /&gt;&lt;BR /&gt;These needs to find</description>
      <pubDate>Mon, 09 Oct 2023 06:48:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Logistic-regression-Analysis/m-p/897759#M44472</guid>
      <dc:creator>ambadi007</dc:creator>
      <dc:date>2023-10-09T06:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic regression Analysis</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Logistic-regression-Analysis/m-p/897767#M44474</link>
      <description>Google is you friend. Please use it. You will find resources like: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/A-Guide-to-Logistic-Regression-in-SAS/ta-p/564323" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/A-Guide-to-Logistic-Regression-in-SAS/ta-p/564323&lt;/A&gt; &amp;amp; &lt;A href="https://support.sas.com/rnd/app/stat/papers/logistic.pdf" target="_blank"&gt;https://support.sas.com/rnd/app/stat/papers/logistic.pdf&lt;/A&gt; &amp;amp; &lt;A href="https://www.youtube.com/watch?v=kwqH3qukXj8" target="_blank"&gt;https://www.youtube.com/watch?v=kwqH3qukXj8&lt;/A&gt;.</description>
      <pubDate>Mon, 09 Oct 2023 08:40:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Logistic-regression-Analysis/m-p/897767#M44474</guid>
      <dc:creator>JosvanderVelden</dc:creator>
      <dc:date>2023-10-09T08:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic regression Analysis</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Logistic-regression-Analysis/m-p/897794#M44477</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc logistic data=sashelp.heart;
class sex bp_status;
model status=sex bp_status weight height/clparm=wald clodds=wald ;
/*oddsratio sex/cl=wald;*/
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1696851449666.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/88719i0C98FBABB6E002E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1696851449666.png" alt="Ksharp_0-1696851449666.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2023 11:37:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Logistic-regression-Analysis/m-p/897794#M44477</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-10-09T11:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic regression Analysis</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Logistic-regression-Analysis/m-p/897800#M44478</link>
      <description>&lt;P&gt;&amp;nbsp;Hi I have found a sample code, but i needed the below results for my requiremnt. I am not understanding how to pass the proper variables and options . the requirement below&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Covariate&lt;/TD&gt;&lt;TD&gt;Estimate&lt;/TD&gt;&lt;TD&gt;Odds Ratio&lt;/TD&gt;&lt;TD&gt;95% CI&lt;/TD&gt;&lt;TD&gt;Wald Chi-Square&lt;/TD&gt;&lt;TD&gt;P-value&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Results&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;xx.xx&lt;/TD&gt;&lt;TD&gt;xx.xx&lt;/TD&gt;&lt;TD&gt;xx.xx&lt;/TD&gt;&lt;TD&gt;xx.xx&lt;/TD&gt;&lt;TD&gt;xx.xx&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Male&lt;/TD&gt;&lt;TD&gt;xx.xx&lt;/TD&gt;&lt;TD&gt;xx.xx&lt;/TD&gt;&lt;TD&gt;xx.xx&lt;/TD&gt;&lt;TD&gt;xx.xx&lt;/TD&gt;&lt;TD&gt;xx.xx&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Female&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Reference&lt;/TD&gt;&lt;TD&gt;Reference&lt;/TD&gt;&lt;TD&gt;Reference&lt;/TD&gt;&lt;TD&gt;Reference&lt;/TD&gt;&lt;TD&gt;Reference&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Results*Male&lt;/TD&gt;&lt;TD&gt;xx.xx&lt;/TD&gt;&lt;TD&gt;xx.xx&lt;/TD&gt;&lt;TD&gt;xx.xx&lt;/TD&gt;&lt;TD&gt;xx.xx&lt;/TD&gt;&lt;TD&gt;xx.xx&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Results*Female&lt;/TD&gt;&lt;TD&gt;Reference&lt;/TD&gt;&lt;TD&gt;Reference&lt;/TD&gt;&lt;TD&gt;Reference&lt;/TD&gt;&lt;TD&gt;Reference&lt;/TD&gt;&lt;TD&gt;Reference&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Mon, 09 Oct 2023 11:49:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Logistic-regression-Analysis/m-p/897800#M44478</guid>
      <dc:creator>ambadi007</dc:creator>
      <dc:date>2023-10-09T11:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic regression Analysis</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Logistic-regression-Analysis/m-p/897820#M44479</link>
      <description>&lt;P&gt;This is basic output from PROC LOGISTIC. But what you want appears in two separate tables. Below assumes that your binary response is called Response, and has values 0 or 1 with 1 being the event level of interest.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc logistic data=YourDataSet;
class gender(ref='Male');
model Response(event="1")=Results gender Results*gender / clparm=wald;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 09 Oct 2023 14:19:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Logistic-regression-Analysis/m-p/897820#M44479</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2023-10-09T14:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic regression Analysis</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Logistic-regression-Analysis/m-p/898091#M44491</link>
      <description>&lt;P&gt;Hi I have used the code,.. the problem is that I am not able to get the ODDS ratio&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 09:22:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Logistic-regression-Analysis/m-p/898091#M44491</guid>
      <dc:creator>ambadi007</dc:creator>
      <dc:date>2023-10-11T09:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic regression Analysis</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Logistic-regression-Analysis/m-p/898093#M44492</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/76823"&gt;@ambadi007&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi I have used the code,.. the problem is that I am not able to get the ODDS ratio&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Please show us your code. Please show us the output. Please show us (a portion) of your data.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 09:33:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Logistic-regression-Analysis/m-p/898093#M44492</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-10-11T09:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic regression Analysis</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Logistic-regression-Analysis/m-p/898096#M44493</link>
      <description>&lt;DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please find the data and the code below which i have.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;ods trace on;
ods output Association=or2 GlobalTests=GBLT_2;

proc logistic data=mydata  outmodel=stat_3;
	class gender (ref="F");
	model improvement(event="Y")=result gender gender*result  / clodds=wald;
run;
ods trace off;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;improvement&lt;/TD&gt;&lt;TD&gt;Result&lt;/TD&gt;&lt;TD&gt;Gender&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Y&lt;/TD&gt;&lt;TD&gt;12&lt;/TD&gt;&lt;TD&gt;M&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;N&lt;/TD&gt;&lt;TD&gt;13&lt;/TD&gt;&lt;TD&gt;F&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Y&lt;/TD&gt;&lt;TD&gt;14&lt;/TD&gt;&lt;TD&gt;M&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Y&lt;/TD&gt;&lt;TD&gt;15&lt;/TD&gt;&lt;TD&gt;F&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Y&lt;/TD&gt;&lt;TD&gt;16&lt;/TD&gt;&lt;TD&gt;M&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Y&lt;/TD&gt;&lt;TD&gt;17&lt;/TD&gt;&lt;TD&gt;M&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Y&lt;/TD&gt;&lt;TD&gt;18&lt;/TD&gt;&lt;TD&gt;F&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 11 Oct 2023 10:17:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Logistic-regression-Analysis/m-p/898096#M44493</guid>
      <dc:creator>ambadi007</dc:creator>
      <dc:date>2023-10-11T10:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic regression Analysis</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Logistic-regression-Analysis/m-p/898107#M44495</link>
      <description>&lt;P&gt;Please, in the future, follow &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/Maxims-of-Maximally-Efficient-SAS-Programmers/ta-p/352068" target="_self"&gt;Maxim 2&lt;/A&gt;, which says:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;H3 id="toc-hId--1880129410"&gt;Maxim 2&lt;/H3&gt;
&lt;H4 id="toc-hId--333832580" class="maxim-western"&gt;Read the log.&lt;/H4&gt;
&lt;P class="remark-western"&gt;Everything you need to know about your program is in the log. Interpreting messages and NOTEs is essential in finding errors.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P class="remark-western"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="remark-western"&gt;The log says:&amp;nbsp;&lt;/P&gt;
&lt;P class="remark-western"&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;NOTE: The CLODDS= option does not compute odds ratios for effects involved in interactions or nestings.
      Specify the ODDSRATIO statement to compute odds ratios for these effects.

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P class="remark-western"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="remark-western"&gt;So you need to add the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_logistic_syntax26.htm" target="_self"&gt;ODDSRATIO command&lt;/A&gt; into your code. Maybe like this:&lt;/P&gt;
&lt;P class="remark-western"&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc logistic data=mydata  outmodel=stat_3;
	class gender (ref="F");
	model improvement(event="Y")=result gender gender*result  / clodds=wald;
    oddsratio gender;
    oddsratio result;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P class="remark-western"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="remark-western"&gt;The log also says&lt;/P&gt;
&lt;P class="remark-western"&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;WARNING: There is a complete separation of data points. The maximum likelihood estimate does not exist.
WARNING: The LOGISTIC procedure continues in spite of the above warning. Results shown are based on the last maximum likelihood iteration. Validity
         of the model fit is questionable.
&lt;/PRE&gt;
&lt;P class="remark-western"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="remark-western"&gt;which means that the results you get are questionable.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 11:20:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Logistic-regression-Analysis/m-p/898107#M44495</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-10-11T11:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic regression Analysis</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Logistic-regression-Analysis/m-p/898110#M44496</link>
      <description>As Paige said using ODDSRATIO statement.&lt;BR /&gt;&lt;BR /&gt;proc logistic data=sashelp.heart(obs=1000);&lt;BR /&gt;class sex bp_status;&lt;BR /&gt;model status=sex bp_status weight height sex*height/clparm=wald clodds=wald ;&lt;BR /&gt;oddsratio height/at(sex=all) cl=wald;&lt;BR /&gt;run;&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Oct 2023 11:42:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Logistic-regression-Analysis/m-p/898110#M44496</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-10-11T11:42:09Z</dc:date>
    </item>
  </channel>
</rss>

