<?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 generate &amp;quot;0&amp;quot; coefficent estimates for categorical covariate in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-generate-quot-0-quot-coefficent-estimates-for/m-p/947539#M47395</link>
    <description>&lt;PRE&gt;&lt;CODE class=""&gt;1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 SYMBOLGEN:  Macro variable _SASWSTEMP_ resolves to 
             /r/ge.unx.sas.com/vol/vol110/u11/spndac/.sasstudio/.images/4f40afea-269a-46b8-867a-731823c2ccda
 SYMBOLGEN:  Some characters in the above value which were subject to macro quoting have been unquoted for printing.
 SYMBOLGEN:  Macro variable GRAPHINIT resolves to GOPTIONS RESET=ALL GSFNAME=_GSFNAME;
 NOTE: ODS statements in the SAS Studio environment may disable some output features.
 73         
 74         proc logistic data=ateamd.model_source_imp_single ;
 75          class mkt_flag60_t / descending ;
 76         
 77           model opp_flag60(event="1")=n_opp_prev12 n_opp_prev24
 78           tot_int_prev60 mkt_flag60_t n_opp_prev12_w n_opp_prev24_w
 79         
 80           n_opp_prev12*n_opp_prev24*
 81           tot_int_prev60*mkt_flag60*n_opp_prev24_w*n_opp_prev12_w
 82         
 83            / expb;
 84           ods output ParameterEstimates = model_win ;
 85         run;
 
 NOTE: PROC LOGISTIC is modeling the probability that opp_flag60=1.
 NOTE: Convergence criterion (GCONV=1E-8) satisfied.
 WARNING: The information matrix is singular and thus the convergence is questionable.  Try specifying a larger SINGULAR= value.
 NOTE: The data set WORK.MODEL_WIN has 8 observations and 9 variables.
 NOTE: Compressing data set WORK.MODEL_WIN increased size by 100.00 percent. 
       Compressed is 2 pages; un-compressed would require 1 pages.
 NOTE: There were 2018674 observations read from the data set ATEAMD.MODEL_SOURCE_IMP_SINGLE.
 NOTE: PROCEDURE LOGISTIC used (Total process time):
       real time           9.15 seconds
       cpu time            8.06 seconds
       
 
 86         
 87         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 SYMBOLGEN:  Macro variable GRAPHTERM resolves to GOPTIONS NOACCESSIBLE;
 99         &lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 15 Oct 2024 19:33:38 GMT</pubDate>
    <dc:creator>dcortell</dc:creator>
    <dc:date>2024-10-15T19:33:38Z</dc:date>
    <item>
      <title>proc logistic generate "0" coefficent estimates for categorical covariate</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-generate-quot-0-quot-coefficent-estimates-for/m-p/947510#M47385</link>
      <description>&lt;P&gt;Hi expert&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to model a binary outcome event (1=opportunity generated, 0=opportunity missing), based on a set of covariate, one of which is categorical and binary (presence or not of a marketing interaction)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output provided below&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="15pg.png" style="width: 807px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/101233i87A710AB93F24469/image-size/large?v=v2&amp;amp;px=999" role="button" title="15pg.png" alt="15pg.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm getting for the categorical covariate estimate="0". I remember I have read somewhere that whenever a variable can be represented as linear outcome of other covariates it will not be represented with a coefficient. Then the question is how to check if that covariate is significant?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bests&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 16:43:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-generate-quot-0-quot-coefficent-estimates-for/m-p/947510#M47385</guid>
      <dc:creator>dcortell</dc:creator>
      <dc:date>2024-10-15T16:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: proc logistic generate "0" coefficent estimates for categorical covariate</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-generate-quot-0-quot-coefficent-estimates-for/m-p/947512#M47386</link>
      <description>&lt;P&gt;You may have more serious data issues than co-linearity.&lt;/P&gt;
&lt;P&gt;Run Proc freq on the variable Mkt_flag60_1, since that is the only one showing an estimate of 0. The DF=0 makes me strongly suspect you only have one level of non-missing values for that variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If those 12 and 24 and possibly that 60 in the variable names refer to time values you may have a data structure issue as well&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 16:59:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-generate-quot-0-quot-coefficent-estimates-for/m-p/947512#M47386</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-10-15T16:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: proc logistic generate "0" coefficent estimates for categorical covariate</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-generate-quot-0-quot-coefficent-estimates-for/m-p/947517#M47388</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="15pg.png" style="width: 199px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/101234i4315B54D70CA132F/image-size/large?v=v2&amp;amp;px=999" role="button" title="15pg.png" alt="15pg.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The mkt_flag60 has both positive and negative value, despite the negative being only associated to target=1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This make sense as the mkt_flag tell us if a marketing touchpoint was present, and if to that touchpoint followed up an opportunity or not (there are no record where a marketing touchpoint did not happen; but there are records where an opportunity happened BUT no marketing touchpoint was not present)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Those opp 12 and 24 records count the number of opportunities in the previous 12 and 24 months preceding the marketing date (or before the 60th day before the opportunity date, if not marketing touchpoint did happen)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The int_60 days measure if there were other marketing touchpoints BEFORE the last touchpoint described bu the mkt_flag60. There are only values ONLY IF there is a mkt_flag=1 (as if there is no mkt touchpoint, then there can't be a chain of mkt touchpoint before that)&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 17:16:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-generate-quot-0-quot-coefficent-estimates-for/m-p/947517#M47388</guid>
      <dc:creator>dcortell</dc:creator>
      <dc:date>2024-10-15T17:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: proc logistic generate "0" coefficent estimates for categorical covariate</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-generate-quot-0-quot-coefficent-estimates-for/m-p/947522#M47389</link>
      <description>&lt;P&gt;What happened to variable mkt_flag60_t in your original output? Why are you showing us different variables now?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 18:37:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-generate-quot-0-quot-coefficent-estimates-for/m-p/947522#M47389</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-10-15T18:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: proc logistic generate "0" coefficent estimates for categorical covariate</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-generate-quot-0-quot-coefficent-estimates-for/m-p/947526#M47390</link>
      <description>&lt;P&gt;What do you mean what happen to the covariate? I just tabulated the value of the variable. did nothing more.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 18:42:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-generate-quot-0-quot-coefficent-estimates-for/m-p/947526#M47390</guid>
      <dc:creator>dcortell</dc:creator>
      <dc:date>2024-10-15T18:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: proc logistic generate "0" coefficent estimates for categorical covariate</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-generate-quot-0-quot-coefficent-estimates-for/m-p/947528#M47391</link>
      <description>&lt;P&gt;Sorry, I understand what you are saying. The suffix "_t" is missing because I tabulated the numeric version of the same variable. But the values are exactly the same.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 18:44:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-generate-quot-0-quot-coefficent-estimates-for/m-p/947528#M47391</guid>
      <dc:creator>dcortell</dc:creator>
      <dc:date>2024-10-15T18:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: proc logistic generate "0" coefficent estimates for categorical covariate</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-generate-quot-0-quot-coefficent-estimates-for/m-p/947531#M47392</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/71355"&gt;@dcortell&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Sorry, I understand what you are saying. The suffix "_t" is missing because I tabulated the numeric version of the same variable. But the values are exactly the same.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The only thing I can say is show us the _t variable run through PROC FREQ.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 19:00:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-generate-quot-0-quot-coefficent-estimates-for/m-p/947531#M47392</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-10-15T19:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: proc logistic generate "0" coefficent estimates for categorical covariate</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-generate-quot-0-quot-coefficent-estimates-for/m-p/947533#M47393</link>
      <description>&lt;P&gt;here you go&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="15pg.png" style="width: 377px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/101244iDE6D6A534E8B2BDF/image-size/large?v=v2&amp;amp;px=999" role="button" title="15pg.png" alt="15pg.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 19:06:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-generate-quot-0-quot-coefficent-estimates-for/m-p/947533#M47393</guid>
      <dc:creator>dcortell</dc:creator>
      <dc:date>2024-10-15T19:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: proc logistic generate "0" coefficent estimates for categorical covariate</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-generate-quot-0-quot-coefficent-estimates-for/m-p/947536#M47394</link>
      <description>&lt;P&gt;Probably time to share the code for the logistic submitted as well.&amp;nbsp; Best would be to copy the text from the LOG with the code submitted and all messages generated by the procedure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We can't tell at this point if you may have subset the data with a WHERE statement, or if using BY group processing to generate subsets. At which point your "problem" may only be with one subset of the data,&amp;nbsp; or just enough missing values for other variables in the model to remove all of the 0 values from the final model.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 19:13:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-generate-quot-0-quot-coefficent-estimates-for/m-p/947536#M47394</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-10-15T19:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: proc logistic generate "0" coefficent estimates for categorical covariate</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-generate-quot-0-quot-coefficent-estimates-for/m-p/947539#M47395</link>
      <description>&lt;PRE&gt;&lt;CODE class=""&gt;1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 SYMBOLGEN:  Macro variable _SASWSTEMP_ resolves to 
             /r/ge.unx.sas.com/vol/vol110/u11/spndac/.sasstudio/.images/4f40afea-269a-46b8-867a-731823c2ccda
 SYMBOLGEN:  Some characters in the above value which were subject to macro quoting have been unquoted for printing.
 SYMBOLGEN:  Macro variable GRAPHINIT resolves to GOPTIONS RESET=ALL GSFNAME=_GSFNAME;
 NOTE: ODS statements in the SAS Studio environment may disable some output features.
 73         
 74         proc logistic data=ateamd.model_source_imp_single ;
 75          class mkt_flag60_t / descending ;
 76         
 77           model opp_flag60(event="1")=n_opp_prev12 n_opp_prev24
 78           tot_int_prev60 mkt_flag60_t n_opp_prev12_w n_opp_prev24_w
 79         
 80           n_opp_prev12*n_opp_prev24*
 81           tot_int_prev60*mkt_flag60*n_opp_prev24_w*n_opp_prev12_w
 82         
 83            / expb;
 84           ods output ParameterEstimates = model_win ;
 85         run;
 
 NOTE: PROC LOGISTIC is modeling the probability that opp_flag60=1.
 NOTE: Convergence criterion (GCONV=1E-8) satisfied.
 WARNING: The information matrix is singular and thus the convergence is questionable.  Try specifying a larger SINGULAR= value.
 NOTE: The data set WORK.MODEL_WIN has 8 observations and 9 variables.
 NOTE: Compressing data set WORK.MODEL_WIN increased size by 100.00 percent. 
       Compressed is 2 pages; un-compressed would require 1 pages.
 NOTE: There were 2018674 observations read from the data set ATEAMD.MODEL_SOURCE_IMP_SINGLE.
 NOTE: PROCEDURE LOGISTIC used (Total process time):
       real time           9.15 seconds
       cpu time            8.06 seconds
       
 
 86         
 87         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 SYMBOLGEN:  Macro variable GRAPHTERM resolves to GOPTIONS NOACCESSIBLE;
 99         &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 Oct 2024 19:33:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-generate-quot-0-quot-coefficent-estimates-for/m-p/947539#M47395</guid>
      <dc:creator>dcortell</dc:creator>
      <dc:date>2024-10-15T19:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: proc logistic generate "0" coefficent estimates for categorical covariate</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-generate-quot-0-quot-coefficent-estimates-for/m-p/947545#M47396</link>
      <description>&lt;PRE&gt;&lt;FONT color="#FF0000"&gt; WARNING: The information matrix is singular and thus the convergence is questionable.  Try specifying a larger SINGULAR= value.&lt;/FONT&gt;&lt;/PRE&gt;
&lt;P&gt;Your model cannot return coefficients for all variables because the matrix is singular; your variable mkt_flag_t is completely correlated with a linear combination of some of the other x-variables. So SAS sets the coefficient to zero.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You would have to remove one or more terms from the model to fix this.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 19:54:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-generate-quot-0-quot-coefficent-estimates-for/m-p/947545#M47396</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-10-15T19:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: proc logistic generate "0" coefficent estimates for categorical covariate</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-generate-quot-0-quot-coefficent-estimates-for/m-p/947571#M47398</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1729041276957.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/101261i4A0C561E7C339F6B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1729041276957.png" alt="Ksharp_0-1729041276957.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;when&amp;nbsp;mkt_flag60_t =0 , you only have&amp;nbsp;opp_flag60=1, not have&amp;nbsp;opp_flag60=0,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;your data got separately problem. you can not include&amp;nbsp;mkt_flag60_t&amp;nbsp; in your model(delete this variable).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;that is the reason why you get DF=0 for&amp;nbsp;mkt_flag60_t .&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2024 01:22:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-generate-quot-0-quot-coefficent-estimates-for/m-p/947571#M47398</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-10-16T01:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: proc logistic generate "0" coefficent estimates for categorical covariate</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-generate-quot-0-quot-coefficent-estimates-for/m-p/947628#M47399</link>
      <description>Yeah, the data are like that. An opp can or cannot be generated with a marketing touch point. However, when there is a marketing touch point then not always an opp is generated. The mkt_flag60 is the variable we wanna study as it is the one representing the mkt touch points</description>
      <pubDate>Wed, 16 Oct 2024 07:48:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-generate-quot-0-quot-coefficent-estimates-for/m-p/947628#M47399</guid>
      <dc:creator>dcortell</dc:creator>
      <dc:date>2024-10-16T07:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: proc logistic generate "0" coefficent estimates for categorical covariate</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-generate-quot-0-quot-coefficent-estimates-for/m-p/947630#M47401</link>
      <description>Then you can not use proc logistic if you really need include "mkt_flag60 " variable.&lt;BR /&gt;You could try other way . like PROC FREQ + Chisq Test, Bayese Logistic Model(proc genmod), Poisson Regression :&lt;BR /&gt;&lt;A href="http://support.sas.com/kb/24/188.html" target="_blank"&gt;http://support.sas.com/kb/24/188.html&lt;/A&gt;</description>
      <pubDate>Wed, 16 Oct 2024 08:10:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-generate-quot-0-quot-coefficent-estimates-for/m-p/947630#M47401</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-10-16T08:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: proc logistic generate "0" coefficent estimates for categorical covariate</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-generate-quot-0-quot-coefficent-estimates-for/m-p/947655#M47403</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/71355"&gt;@dcortell&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Yeah, the data are like that. An opp can or cannot be generated with a marketing touch point. However, when there is a marketing touch point then not always an opp is generated. The mkt_flag60 is the variable we wanna study as it is the one representing the mkt touch points&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;As I said, you cannot estimate all the terms in this model. You have to remove one (or more) terms from the model.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2024 10:37:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-generate-quot-0-quot-coefficent-estimates-for/m-p/947655#M47403</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-10-16T10:37:41Z</dc:date>
    </item>
  </channel>
</rss>

