Building models with SAS Enterprise Miner, SAS Factory Miner, SAS Visual Data Mining and Machine Learning or just with programming

Proc Logistic , please help. Thanks

Frequent Contributor
Posts: 96

Proc Logistic , please help. Thanks

Hi All,

Just a quick one regarding proc logistic in SAS, I have entered 15 variables in my model and 14 variables seem to be good, does it mean that I should keep all of them in my model?  Also I have troubles at understanding the concordent and disconcordent. Does it mean that the model has predicted 80.5% correctly??If I add variables or remove which statistic should tell me that the model is still good. Is it C (AUC value)? In the past, I was using another software to build models, so I am bit lost..
Many Thanks
Summary of Forward Selection
StepEffectDFNumberScorePr > ChiSq
Association of Predicted Probabilities and Observed Responses
Percent Concordant80.5Somers' D0.611
Percent Discordant19.4Gamma0.612
Percent Tied0.2Tau-a0.279
Super User
Posts: 17,907

Re: Proc Logistic , please help. Thanks

I highly suggest you review the following pages and then try asking your question again. This is a very broad question, in my opinion.

Statistical Computing Seminars: Introduction to SAS proc logistic

Google search using: proc logistic

Occasional Contributor
Posts: 17

Re: Proc Logistic , please help. Thanks


being a classically trained statistician who was introduced to data mining only later in my career, I consider myself biased against data dredging. Stepwise selection is often brought up as a pragmatic example of using computational power to replace domain knowledge. In data mining is it not uncommon to start with hundreds or thousands of variables. It is just unpractical to analyze one variable at a time. That’s where I tend to use stepwise regression, as an  initial variable selection method used in combination with other variable selection methods such as decision trees, IV,…
In your case it seems like you’re starting with a small number of variables. That’s where domain knowledge should come in to help decide what to include and what to exclude, sometimes regardless of their p-value.


Respected Advisor
Posts: 4,655

Re: Proc Logistic , please help. Thanks

A quick one you say? Not sure.

You have a large number of cases, which means that you could detect very subtle effects which in fact don't make any practical difference. A statistically significant effect is not necessarily an important effect. One way you can assess the importance of an effect empirically is by looking at the change in Percent Concordant when you remove a variable from the model.

Percent concordant is the proportion of matching prediction changes, i.e. if case i is not an event and case j is an event, then if predicted P(i) < P(j) then the ij pair is concordant, if P(i) > P(j) the pair is discordant and if P(i)=P(j) then the pair is tied.



Trusted Advisor
Posts: 1,204

Re: Proc Logistic , please help. Thanks

This seems to be an overfitting problem, I suggest check collinearity before adding variables in the analysis.


Ask a Question
Discussion stats
  • 4 replies
  • 1 like
  • 5 in conversation