BookmarkSubscribeRSS Feed
Marianne
Calcite | Level 5

I have received the following output in Proc Logistic:

VariableDFEstimateStdErrWaldChiSqProbChiSqStandardizedEst
Intercept1-0.17440.23160.56710.4514_
Var111.75370.297734.7055<.00010.0772
Var210.02620.0039344.3659<.00010.0792
Var31-0.46270.077335.8634<.0001-0.0813
Var41-0.32090.04942.8821<.0001-0.0884
Var51-0.001910.00020686.6722<.0001-0.1216
Var61-0.73360.111743.1698<.0001-0.1282
Var71-0.94590.163233.5811<.0001-0.057

How do I convert it into scoring formula?

I tried a formula based on the Estimate column:
-0.1744+1.7537*Var1+0.0262*Var2-0.4627*Var3 etc.. However, the result I am getting does not match the Score if I were to score using Proc Logistic (Proc Logistic Inmodel=a.Model)

I need to be able to create the score produced using Inmodel statement, but using linear function Intercept+XVar1+YVar2... Which info from the output I should be using and what is the transformation (if any) required?

Thank you!

1 REPLY 1
PGStats
Opal | Level 21

What you get with your expression F = intercept + Var1*b1 + ... is Logit(p) = Ln(p/(1-p)). You want to estimate p = exp(F)/(1+exp(F)) = 1 / (1+exp(-F)).

PG

PG

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 2398 views
  • 0 likes
  • 2 in conversation