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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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