<?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: Help Setting up Exact Logistic Regression in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Help-Setting-up-Exact-Logistic-Regression/m-p/768733#M37594</link>
    <description>Also you could use FIRTH option to instead of EXACT test.&lt;BR /&gt;&lt;BR /&gt;proc logistic;&lt;BR /&gt;model porosity(event="1")=years/ firth ;&lt;BR /&gt;run;</description>
    <pubDate>Tue, 21 Sep 2021 10:50:34 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2021-09-21T10:50:34Z</dc:date>
    <item>
      <title>Help Setting up Exact Logistic Regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-Setting-up-Exact-Logistic-Regression/m-p/768688#M37589</link>
      <description>&lt;P&gt;Hi all. I am having a hard time and was hoping that someone could help me with the code I need to use for my exact logistic regression test? First, is my data file set up correctly? I am testing the yes/no (binary) presence of skeletal stress against military service length of a sample of 29 decedents. In column A I have Years (this is active years of military service) and column B has a 0 or a 1 where 0 means no and 1 means yes. If this is correct, how would I set up my code? I have tried looking up examples and mimicking that but am not having the best luck and am not the most confident after doing that. It appears that I need three columns of data unless I'm just looking at examples that are too different from what my data is. If I need to set up my data a little differently, please let me know. For example, should column A have the years and then column B have the quantity of yes and column C have the quantity of no rather than each person getting their own data row? I am happy to provide any other info upon request. Thank you in advance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Years&lt;/TD&gt;&lt;TD&gt;Porosity&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;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t;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;12&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;19&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;19&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;21&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Tue, 21 Sep 2021 01:00:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-Setting-up-Exact-Logistic-Regression/m-p/768688#M37589</guid>
      <dc:creator>bripetersen</dc:creator>
      <dc:date>2021-09-21T01:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: Help Setting up Exact Logistic Regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-Setting-up-Exact-Logistic-Regression/m-p/768689#M37590</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13633"&gt;@StatDave&lt;/a&gt;&amp;nbsp;- you helped me a lot on my last post so maybe you have some input? Many thanks in advance&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 01:01:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-Setting-up-Exact-Logistic-Regression/m-p/768689#M37590</guid>
      <dc:creator>bripetersen</dc:creator>
      <dc:date>2021-09-21T01:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: Help Setting up Exact Logistic Regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-Setting-up-Exact-Logistic-Regression/m-p/768691#M37591</link>
      <description>&lt;P&gt;This is just a simple logistic model. You can always use individual level data like this, but alternative response syntax is available if the data is aggregated into counts like you mentioned. You don't really need exact estimation since the default asymptotic method seems to converge to a proper solution. You can add the EXACT statement if you really want, but the results are similar.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc logistic;
model porosity(event="1")=years;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 21 Sep 2021 01:48:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-Setting-up-Exact-Logistic-Regression/m-p/768691#M37591</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2021-09-21T01:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: Help Setting up Exact Logistic Regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-Setting-up-Exact-Logistic-Regression/m-p/768692#M37592</link>
      <description>My research told me that I should use exact logistic regression because my sample size is so small - is that not the case? Thanks so much - my first time using this test and my first time using SAS, I usually use R! Appreciate it</description>
      <pubDate>Tue, 21 Sep 2021 02:11:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-Setting-up-Exact-Logistic-Regression/m-p/768692#M37592</guid>
      <dc:creator>bripetersen</dc:creator>
      <dc:date>2021-09-21T02:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: Help Setting up Exact Logistic Regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-Setting-up-Exact-Logistic-Regression/m-p/768716#M37593</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Performing Exact Logistic Regression with the SAS System — Revised 2009&lt;BR /&gt;Robert E. Derr, SAS Institute Inc., Cary, NC&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/rnd/app/stat/papers/exactlogistic2009.pdf" target="_blank"&gt;https://support.sas.com/rnd/app/stat/papers/exactlogistic2009.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Exact Logistic Regression and Exact Poisson Regression&lt;BR /&gt;&lt;A href="https://support.sas.com/rnd/app/stat/topics/exact/exact.htm" target="_blank"&gt;https://support.sas.com/rnd/app/stat/topics/exact/exact.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Exact Methods&lt;BR /&gt;&lt;A href="https://support.sas.com/rnd/app/stat/topics/exact-methods.html" target="_blank"&gt;https://support.sas.com/rnd/app/stat/topics/exact-methods.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 08:51:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-Setting-up-Exact-Logistic-Regression/m-p/768716#M37593</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2021-09-21T08:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: Help Setting up Exact Logistic Regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-Setting-up-Exact-Logistic-Regression/m-p/768733#M37594</link>
      <description>Also you could use FIRTH option to instead of EXACT test.&lt;BR /&gt;&lt;BR /&gt;proc logistic;&lt;BR /&gt;model porosity(event="1")=years/ firth ;&lt;BR /&gt;run;</description>
      <pubDate>Tue, 21 Sep 2021 10:50:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-Setting-up-Exact-Logistic-Regression/m-p/768733#M37594</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-09-21T10:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: Help Setting up Exact Logistic Regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-Setting-up-Exact-Logistic-Regression/m-p/768771#M37595</link>
      <description>Thank you! I've already read all of these and was still a little confused. The examples aren't exactly what my test is so I was having a hard time translating it. I am not a statistician if you can't tell haha</description>
      <pubDate>Tue, 21 Sep 2021 13:09:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-Setting-up-Exact-Logistic-Regression/m-p/768771#M37595</guid>
      <dc:creator>bripetersen</dc:creator>
      <dc:date>2021-09-21T13:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: Help Setting up Exact Logistic Regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-Setting-up-Exact-Logistic-Regression/m-p/768940#M37605</link>
      <description>There is nothing wrong with using the exact method, but it often isn't necessary. It is clearly needed if a very small sample size or sparseness of the data cause problems with the default asymptotic estimation. But otherwise the exact method usually produces more conservative results than the asymptotic method. So if, as in this case, the  p-value(s) of interest are not significant (such as &amp;gt;0.15) then the results from the exact method are not likely to change much. For more, see the book by Stokes et. al. (2012), Categorical Data Analysis Using the SAS System.</description>
      <pubDate>Tue, 21 Sep 2021 20:11:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-Setting-up-Exact-Logistic-Regression/m-p/768940#M37605</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2021-09-21T20:11:44Z</dc:date>
    </item>
  </channel>
</rss>

