<?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: PROC LOGISTIC: Positive effect in logistic model where a negative one should occur in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/PROC-LOGISTIC-Positive-effect-in-logistic-model-where-a-negative/m-p/592677#M15385</link>
    <description>&lt;P&gt;So I tried this before coming onto here, what is does is switches which of the two has a larger positive coefficient, but both remain positive. My office is renewing my license today so I can't currently give you the exact coefficients, but what happens is it becomes sub1=y+pfs+rfs where the coefficient of pfs&amp;gt; coefficient of rfs; 0&amp;lt;= either coefficient &amp;lt;= 1.&lt;/P&gt;</description>
    <pubDate>Mon, 30 Sep 2019 14:01:36 GMT</pubDate>
    <dc:creator>halkyos</dc:creator>
    <dc:date>2019-09-30T14:01:36Z</dc:date>
    <item>
      <title>PROC LOGISTIC: Positive effect in logistic model where a negative one should occur</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-LOGISTIC-Positive-effect-in-logistic-model-where-a-negative/m-p/592292#M15337</link>
      <description>&lt;P&gt;I am working with risk and protective factor data for outcomes regarding substance use. My data is arranged so that I have an outcome as a binary variable (0=no use, 1= use), the total number of risk factors and the total number of protective factors. Risk factors are known to increase the likelihood of an outcome occurring and protective factors are known to have an opposite effect. Examination in PROC FREQ shows that the proportion of observations using a substance increases with the number of risk factors and decreases with the number of protective factors.&amp;nbsp; When I use PROC LOGISTIC though to write a model, I am getting a positive effect from my protective factors. Here is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC LOGISTIC DATA=survey DESCENDING;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;MODEL&amp;nbsp;sub1=&amp;nbsp;rfs&amp;nbsp;pfs;&lt;BR /&gt;RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;sub1: binary variable where 1= using the substance and 0=not using the substance.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;rfs: total number of risk factors.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;pfs: total number of protective factors.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My results for one substance are giving me a model of p(1)=-3.1860+0.3033(rfs)+0.1181(pfs). As a researcher I know that this is wrong, I don't have anomalous data where the population is more likely to use substances if they have more protective factors, but I am having trouble figuring out how to correct this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2019 19:45:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-LOGISTIC-Positive-effect-in-logistic-model-where-a-negative/m-p/592292#M15337</guid>
      <dc:creator>halkyos</dc:creator>
      <dc:date>2019-09-27T19:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: PROC LOGISTIC: Positive effect in logistic model where a negative one should occur</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-LOGISTIC-Positive-effect-in-logistic-model-where-a-negative/m-p/592293#M15338</link>
      <description>Can you post your log?&lt;BR /&gt;And are rfs and pfs continuous or categorical?</description>
      <pubDate>Fri, 27 Sep 2019 19:48:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-LOGISTIC-Positive-effect-in-logistic-model-where-a-negative/m-p/592293#M15338</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-09-27T19:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: PROC LOGISTIC: Positive effect in logistic model where a negative one should occur</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-LOGISTIC-Positive-effect-in-logistic-model-where-a-negative/m-p/592295#M15339</link>
      <description>&lt;P&gt;One reason this can occur is if your two x-variables rfs and pfs are highly correlated with each other. Another reason this can occur is if you have outliers or clusters in rfs and/or pfs.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2019 19:49:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-LOGISTIC-Positive-effect-in-logistic-model-where-a-negative/m-p/592295#M15339</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-09-27T19:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: PROC LOGISTIC: Positive effect in logistic model where a negative one should occur</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-LOGISTIC-Positive-effect-in-logistic-model-where-a-negative/m-p/592306#M15340</link>
      <description>&lt;P&gt;Here is my log:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;306 PROC LOGISTIC DATA=survey DESCENDING;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;307 MODEL sub1=rfs pfs;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;308 RUN;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;NOTE: PROC LOGISTIC is modeling the probability that sub1=1.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;NOTE: Convergence criterion (GCONV=1E-8) satisfied.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;NOTE: There were 14445 observations read from the data set WORK.SURVEY.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;NOTE: PROCEDURE LOGISTIC used (Total process time):&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;real time 0.25 seconds&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;cpu time 0.15 seconds&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;rfs and pfs are positive whole integers unless they are 0 representing the number of risk or protective factors present. rfs ranges from 0-21 and pfs ranges from 0-12.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2019 20:00:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-LOGISTIC-Positive-effect-in-logistic-model-where-a-negative/m-p/592306#M15340</guid>
      <dc:creator>halkyos</dc:creator>
      <dc:date>2019-09-27T20:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: PROC LOGISTIC: Positive effect in logistic model where a negative one should occur</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-LOGISTIC-Positive-effect-in-logistic-model-where-a-negative/m-p/592319#M15341</link>
      <description>&lt;P&gt;I just tested for these possibilities: A chi-square test for independence indicates that rfs and pfs are independent. When entered into PROC AUTOREG for rfs=pfs and pfs=rfs the values are negatively correlated to each other:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;chi-sq: 4876.6114, p&amp;lt;0.0001.&lt;/P&gt;&lt;P&gt;rfs=12.9714-0.7614(pfs), p&amp;lt;0.0001.&lt;/P&gt;&lt;P&gt;pfs=8.7403-0.2989(rfs), p&amp;lt;0.0001.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The overall distributions are almost textbook normal, and when stratified to whether or not the observation reported substance use the distribution of rfs for non substance users takes on a right-tail skew. All other distributions remain normal.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2019 20:41:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-LOGISTIC-Positive-effect-in-logistic-model-where-a-negative/m-p/592319#M15341</guid>
      <dc:creator>halkyos</dc:creator>
      <dc:date>2019-09-27T20:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: PROC LOGISTIC: Positive effect in logistic model where a negative one should occur</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-LOGISTIC-Positive-effect-in-logistic-model-where-a-negative/m-p/592320#M15342</link>
      <description>P&amp;lt;0.0001 means related not indepedent, doesn't it?</description>
      <pubDate>Fri, 27 Sep 2019 20:59:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-LOGISTIC-Positive-effect-in-logistic-model-where-a-negative/m-p/592320#M15342</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-09-27T20:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: PROC LOGISTIC: Positive effect in logistic model where a negative one should occur</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-LOGISTIC-Positive-effect-in-logistic-model-where-a-negative/m-p/592328#M15344</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/292703"&gt;@halkyos&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I just tested for these possibilities: A chi-square test for independence indicates that rfs and pfs are independent. When entered into PROC AUTOREG for rfs=pfs and pfs=rfs the values are negatively correlated to each other:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;chi-sq: 4876.6114, p&amp;lt;0.0001.&lt;/P&gt;
&lt;P&gt;rfs=12.9714-0.7614(pfs), p&amp;lt;0.0001.&lt;/P&gt;
&lt;P&gt;pfs=8.7403-0.2989(rfs), p&amp;lt;0.0001.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The overall distributions are almost textbook normal, and when stratified to whether or not the observation reported substance use the distribution of rfs for non substance users takes on a right-tail skew. All other distributions remain normal.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;What is the correlation (not the auto-correlation from PROC AUTOREG but the correlation from PROC CORR) between rfs and pfs? Distribution of your x-variables is irrelevant here. Are there outliers or clusters among your x-variables?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2019 21:14:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-LOGISTIC-Positive-effect-in-logistic-model-where-a-negative/m-p/592328#M15344</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-09-27T21:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: PROC LOGISTIC: Positive effect in logistic model where a negative one should occur</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-LOGISTIC-Positive-effect-in-logistic-model-where-a-negative/m-p/592381#M15349</link>
      <description>&lt;P&gt;Change your response value which model the prob ,and you get the different result&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;PROC&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;LOGISTIC&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;DATA&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;survey &lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;  &lt;SPAN class="token procnames"&gt;MODEL&lt;/SPAN&gt; sub1(event='0')  &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; rfs pfs&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;SPAN class="token procnames"&gt;RUN&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;V.S.&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;PROC&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;LOGISTIC&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;DATA&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;survey &lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;  &lt;SPAN class="token procnames"&gt;MODEL&lt;/SPAN&gt; sub1(event='1')&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; rfs pfs&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;SPAN class="token procnames"&gt;RUN&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Sep 2019 11:57:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-LOGISTIC-Positive-effect-in-logistic-model-where-a-negative/m-p/592381#M15349</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-09-28T11:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: PROC LOGISTIC: Positive effect in logistic model where a negative one should occur</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-LOGISTIC-Positive-effect-in-logistic-model-where-a-negative/m-p/592382#M15350</link>
      <description>&lt;P&gt;Another possible reason is BAD data.&lt;/P&gt;
&lt;P&gt;Check the standard error of these two positive estimate coefficient&amp;nbsp; , and see if it was very big .&lt;/P&gt;</description>
      <pubDate>Sat, 28 Sep 2019 12:06:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-LOGISTIC-Positive-effect-in-logistic-model-where-a-negative/m-p/592382#M15350</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-09-28T12:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: PROC LOGISTIC: Positive effect in logistic model where a negative one should occur</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-LOGISTIC-Positive-effect-in-logistic-model-where-a-negative/m-p/592677#M15385</link>
      <description>&lt;P&gt;So I tried this before coming onto here, what is does is switches which of the two has a larger positive coefficient, but both remain positive. My office is renewing my license today so I can't currently give you the exact coefficients, but what happens is it becomes sub1=y+pfs+rfs where the coefficient of pfs&amp;gt; coefficient of rfs; 0&amp;lt;= either coefficient &amp;lt;= 1.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2019 14:01:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-LOGISTIC-Positive-effect-in-logistic-model-where-a-negative/m-p/592677#M15385</guid>
      <dc:creator>halkyos</dc:creator>
      <dc:date>2019-09-30T14:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: PROC LOGISTIC: Positive effect in logistic model where a negative one should occur</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-LOGISTIC-Positive-effect-in-logistic-model-where-a-negative/m-p/592916#M15428</link>
      <description>&lt;P&gt;Did you Check the standard error of these two coefficient ?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2019 04:34:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-LOGISTIC-Positive-effect-in-logistic-model-where-a-negative/m-p/592916#M15428</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-10-01T04:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: PROC LOGISTIC: Positive effect in logistic model where a negative one should occur</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-LOGISTIC-Positive-effect-in-logistic-model-where-a-negative/m-p/592983#M15439</link>
      <description>&lt;P&gt;What is the correlation (not the auto-correlation from PROC AUTOREG but the correlation from PROC CORR) between rfs and pfs?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are there outliers or clusters among your x-variables?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2019 11:04:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-LOGISTIC-Positive-effect-in-logistic-model-where-a-negative/m-p/592983#M15439</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-10-01T11:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: PROC LOGISTIC: Positive effect in logistic model where a negative one should occur</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-LOGISTIC-Positive-effect-in-logistic-model-where-a-negative/m-p/593055#M15458</link>
      <description>Can you show a PROC FREQ of rfs*pfs I suspect you have some massive imbalances.</description>
      <pubDate>Tue, 01 Oct 2019 14:50:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-LOGISTIC-Positive-effect-in-logistic-model-where-a-negative/m-p/593055#M15458</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-10-01T14:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: PROC LOGISTIC: Positive effect in logistic model where a negative one should occur</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-LOGISTIC-Positive-effect-in-logistic-model-where-a-negative/m-p/593072#M15460</link>
      <description>&lt;P&gt;The standard errors are as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;rfs: 0.0417&lt;/P&gt;&lt;P&gt;pfs: 0.0261&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2019 15:41:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-LOGISTIC-Positive-effect-in-logistic-model-where-a-negative/m-p/593072#M15460</guid>
      <dc:creator>halkyos</dc:creator>
      <dc:date>2019-10-01T15:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: PROC LOGISTIC: Positive effect in logistic model where a negative one should occur</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-LOGISTIC-Positive-effect-in-logistic-model-where-a-negative/m-p/593074#M15461</link>
      <description>&lt;P&gt;PROC CORR is new to me, but looking at the guide on that one it seems pretty straightforward. I ran:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC CORR DATA=survey;
	VAR rfs pfs;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;My results are:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="proc corr.PNG" style="width: 532px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/32870i41CBC8B2F83FF95B/image-size/large?v=v2&amp;amp;px=999" role="button" title="proc corr.PNG" alt="proc corr.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2019 15:47:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-LOGISTIC-Positive-effect-in-logistic-model-where-a-negative/m-p/593074#M15461</guid>
      <dc:creator>halkyos</dc:creator>
      <dc:date>2019-10-01T15:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: PROC LOGISTIC: Positive effect in logistic model where a negative one should occur</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-LOGISTIC-Positive-effect-in-logistic-model-where-a-negative/m-p/593076#M15462</link>
      <description>&lt;P&gt;The standard errors on the coefficients in the model are 0.00563 (rfs) and 0.00743 (pfs).&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2019 15:48:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-LOGISTIC-Positive-effect-in-logistic-model-where-a-negative/m-p/593076#M15462</guid>
      <dc:creator>halkyos</dc:creator>
      <dc:date>2019-10-01T15:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: PROC LOGISTIC: Positive effect in logistic model where a negative one should occur</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-LOGISTIC-Positive-effect-in-logistic-model-where-a-negative/m-p/593080#M15463</link>
      <description>&lt;P&gt;My PROC CORR results are as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="proc corr.PNG" style="width: 532px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/32871i2022572FDC6FAA76/image-size/large?v=v2&amp;amp;px=999" role="button" title="proc corr.PNG" alt="proc corr.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are no high or low outliers for either variable.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2019 15:54:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-LOGISTIC-Positive-effect-in-logistic-model-where-a-negative/m-p/593080#M15463</guid>
      <dc:creator>halkyos</dc:creator>
      <dc:date>2019-10-01T15:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: PROC LOGISTIC: Positive effect in logistic model where a negative one should occur</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-LOGISTIC-Positive-effect-in-logistic-model-where-a-negative/m-p/593083#M15464</link>
      <description>&lt;P&gt;Some additional exploration of the that may help us figure this out:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I decided to run four separate models:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Substance use predicted by risk factors only&lt;/LI&gt;&lt;LI&gt;Substance use predicted by protective factors only&lt;/LI&gt;&lt;LI&gt;No substance use predicted by risk factors only&lt;/LI&gt;&lt;LI&gt;No substance use predicted by protective factors only&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;The results are:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Substance use 'yes'=-2.1091+0.2623(rfs)&lt;/LI&gt;&lt;LI&gt;Substance use 'yes'=0.5846-0.0937(pfs)&lt;/LI&gt;&lt;LI&gt;Substance use 'no'=2.1091-0.2623(rfs)&lt;/LI&gt;&lt;LI&gt;Substance use 'no=-0.5846+0.0937(pfs)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the second half of those were probably unnecessary since they are just the inverse of their counterparts in the first two of the models. All p-values &amp;lt; 0.0001. Standard error on either pfs is 0.00542 and on either rfs is 0.00478.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is to show that, when tested independently, these are behaving as expected: increases in number of risk factors increases the probability of using substances, while increases in protective factors reduces this probability. The problem is arising when they are thrown into a model together.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2019 16:10:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-LOGISTIC-Positive-effect-in-logistic-model-where-a-negative/m-p/593083#M15464</guid>
      <dc:creator>halkyos</dc:creator>
      <dc:date>2019-10-01T16:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: PROC LOGISTIC: Positive effect in logistic model where a negative one should occur</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-LOGISTIC-Positive-effect-in-logistic-model-where-a-negative/m-p/593087#M15466</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;This is to show that, when tested independently, these are behaving as expected: increases in number of risk factors increases the probability of using substances, while increases in protective factors reduces this probability. The problem is arising when they are thrown into a model together.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please show a PROC FREQ of how the variables interact.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;As you showed before the proc FREQ returns a p-value of &amp;lt;0.0001 so it seems that they are NOT independent.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Have you tried adding an interaction term?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2019 16:16:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-LOGISTIC-Positive-effect-in-logistic-model-where-a-negative/m-p/593087#M15466</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-10-01T16:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: PROC LOGISTIC: Positive effect in logistic model where a negative one should occur</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-LOGISTIC-Positive-effect-in-logistic-model-where-a-negative/m-p/593095#M15469</link>
      <description>&lt;P&gt;Sorry I saw the request and was having trouble getting it all to show up (13x22 table problems). Hopefully this helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not familiar with adding interaction terms. Is this just running the model as sub1=rfs pfs rfs*pfs?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rfs x pfs_Page_1.png" style="width: 467px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/32876i007CB790039FBED3/image-size/large?v=v2&amp;amp;px=999" role="button" title="rfs x pfs_Page_1.png" alt="rfs x pfs_Page_1.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rfs x pfs_Page_2.png" style="width: 497px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/32877i16111BBE3F08E2E8/image-size/large?v=v2&amp;amp;px=999" role="button" title="rfs x pfs_Page_2.png" alt="rfs x pfs_Page_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(edit: I cropped the images to allow them to be easier to read)&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2019 17:10:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-LOGISTIC-Positive-effect-in-logistic-model-where-a-negative/m-p/593095#M15469</guid>
      <dc:creator>halkyos</dc:creator>
      <dc:date>2019-10-01T17:10:01Z</dc:date>
    </item>
  </channel>
</rss>

