<?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 with Small Case Number and Logistic Regression in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Help-with-Small-Case-Number-and-Logistic-Regression/m-p/556934#M155201</link>
    <description>&lt;P&gt;I don't know what a "small case number" is, but often this error indicates that the explanatory variable (vl50) is able to perfectly predict the response variable (pcr). To find out, use&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc freq data=work_ct;&lt;BR /&gt;tables pcr * vl50;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there is Post the results. I think you will see that one or more of the cells in the table is empty. For example, the cell for vl50=1 and PCR='Positive' might have zero counts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BTW, for a binary response, you don't have to use the GLOGIT link function. You can use the default link, which is logit.&lt;/P&gt;</description>
    <pubDate>Tue, 07 May 2019 20:37:34 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2019-05-07T20:37:34Z</dc:date>
    <item>
      <title>Help with Small Case Number and Logistic Regression</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-Small-Case-Number-and-Logistic-Regression/m-p/556812#M155141</link>
      <description>&lt;P&gt;Dear SAS Community&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an outcome that is a qualitative PCR test (Positive vs. Negative) and the Cycle threshold results for this test (numerical, ~20-36).&lt;/P&gt;&lt;P&gt;I have been using a linear regression model to predict a higher Ct number and increased likelihood of a negative result, but I also want to model the data using logistic regression for the dichotomous outcome, Positive vs. Negative.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a low case number (7) for a sample size of 316. When I run fit a logistic model using a dichotomous predictor, vl50 (0=No, 1=Yes), &amp;nbsp;I get this warning:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: PROC LOGISTIC is fitting the generalized logit model. The logits modeled contrast each&lt;BR /&gt;response category against the reference category (pcr='Positive').&lt;BR /&gt;WARNING: There is possibly a quasi-complete separation of data points. The maximum likelihood&lt;BR /&gt;estimate may not exist.&lt;BR /&gt;WARNING: The LOGISTIC procedure continues in spite of the above warning. Results shown are based&lt;BR /&gt;on the last maximum likelihood iteration. Validity of the model fit is questionable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did some googling and tried using a logistic regression model and a penalized Firth correction with the " exact predictor / estimate=both;" statement, but returned the same warning.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know if there is a better procedure for fitting data like this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My model is attached:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc logistic data=work_ct descending;
	class pcr (ref='Positive') / param=ref;
	class vl50 (ref='No') / param=ref;
	model pcr = vl50 / link=glogit;
	exact vl50 / estimate=both;
	format pcr pcrf. vl50 binaryf.;
	quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Cara&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2019 15:32:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-Small-Case-Number-and-Logistic-Regression/m-p/556812#M155141</guid>
      <dc:creator>cbt2119</dc:creator>
      <dc:date>2019-05-07T15:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Small Case Number and Logistic Regression</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-Small-Case-Number-and-Logistic-Regression/m-p/556934#M155201</link>
      <description>&lt;P&gt;I don't know what a "small case number" is, but often this error indicates that the explanatory variable (vl50) is able to perfectly predict the response variable (pcr). To find out, use&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc freq data=work_ct;&lt;BR /&gt;tables pcr * vl50;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there is Post the results. I think you will see that one or more of the cells in the table is empty. For example, the cell for vl50=1 and PCR='Positive' might have zero counts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BTW, for a binary response, you don't have to use the GLOGIT link function. You can use the default link, which is logit.&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2019 20:37:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-Small-Case-Number-and-Logistic-Regression/m-p/556934#M155201</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-05-07T20:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Small Case Number and Logistic Regression</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-Small-Case-Number-and-Logistic-Regression/m-p/556941#M155204</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I don't know what a "small case number" is, but often this error indicates that the explanatory variable (vl50) is able to perfectly predict the response variable (pcr). To find out, use&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc freq data=work_ct;&lt;BR /&gt;tables pcr * vl50;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there is Post the results. I think you will see that one or more of the cells in the table is empty. For example, the cell for vl50=1 and PCR='Positive' might have zero counts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BTW, for a binary response, you don't have to use the GLOGIT link function. You can use the default link, which is logit.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Make you use the same formats that you did for the variables in the Proc Logistic code.&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2019 21:08:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-Small-Case-Number-and-Logistic-Regression/m-p/556941#M155204</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-05-07T21:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Small Case Number and Logistic Regression</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-Small-Case-Number-and-Logistic-Regression/m-p/557092#M155257</link>
      <description>&lt;P&gt;I do have a 2x2 cell with a zero value. I tried using Firth correction but the model still isn't appropriate for the data. I might just have to scrap the regression.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;Table&amp;nbsp;of&amp;nbsp;pcr&amp;nbsp;by&amp;nbsp;vl50&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;PCR&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;vl50&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P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t;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;Total&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;28&lt;BR /&gt;8.86&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;288&lt;BR /&gt;91.14&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;316&lt;BR /&gt;100.00&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Cara&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2019 13:00:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-Small-Case-Number-and-Logistic-Regression/m-p/557092#M155257</guid>
      <dc:creator>cbt2119</dc:creator>
      <dc:date>2019-05-08T13:00:13Z</dc:date>
    </item>
  </channel>
</rss>

