BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
GVA
SAS Employee GVA
SAS Employee

Hi All,

 

I need your help in the calculation of Logit(y)

 

Logit(y) = -300 + 0.5 * x + 0.3 * y

 

x=30

value of y is unknown

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Rick_SAS
SAS Super FREQ

Please recheck your equations. For that value of x, you are asking for the value y such that 

logit(y) = -285 + 0.3*y;

Did you really intend to have y on both sides of the equation?

 

If so...

For the logit function to be defined, y is in (0, 1). The value logit(y) approaches minus infinity as y ->0, so we are looking for a tiny value of y. Therefore we can effectively ignore the term that includes y on the right and approximate the solution by

logit(y) = -285

or

y = logistic(-285) = 1.68E-124.

 

If y represents the probability of some event, this calculation shows that the probability is effectively 0.

View solution in original post

4 REPLIES 4
Kurt_Bremser
Super User

You already have the formula, so where's the problem? In code, you just need this:

data want;
set have; * provides values for y;
x = 30;
result = -300 + 0.5 * x + 0.3 * y;
run;
Ksharp
Super User

It seems you are looking for a root of function.

@Rick_SAS  wrote some blogs about it .

Rick_SAS
SAS Super FREQ

Please recheck your equations. For that value of x, you are asking for the value y such that 

logit(y) = -285 + 0.3*y;

Did you really intend to have y on both sides of the equation?

 

If so...

For the logit function to be defined, y is in (0, 1). The value logit(y) approaches minus infinity as y ->0, so we are looking for a tiny value of y. Therefore we can effectively ignore the term that includes y on the right and approximate the solution by

logit(y) = -285

or

y = logistic(-285) = 1.68E-124.

 

If y represents the probability of some event, this calculation shows that the probability is effectively 0.

GVA
SAS Employee GVA
SAS Employee

Thank you - for the explanation.

sas-innovate-white.png

Missed SAS Innovate in Orlando?

Catch the best of SAS Innovate 2025 — anytime, anywhere. Stream powerful keynotes, real-world demos, and game-changing insights from the world’s leading data and AI minds.

 

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
  • 4 replies
  • 1185 views
  • 0 likes
  • 4 in conversation