BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
sameer112217
Quartz | Level 8

logit(p)== b0 + b1x1.

 

If x1 value is missing. what will be the value of the odds? Missing or some value?

 

Can anyone answer?

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Rick_SAS
SAS Super FREQ

The predicted value is missing for every observation in which any explanatory variable in the model is missing. The regression model cannot compute a predicted value (or a residual) when there is a missing value on the right-hand side of the  model.

View solution in original post

9 REPLIES 9
Reeza
Super User

Missing. 

Ksharp
Super User

You mean a single x1 value is missing 
or all the x1 value are missing ?

sameer112217
Quartz | Level 8

Single x1 with rest of values

Ksharp
Super User
If one single obs (x1) is not missing. SAS will remove that obs from fitting MODEL.
Therefore, ODDS should have a value .

Reeza
Super User

@Ksharp you've assumed the OP is fitting a model, given the formula it could be a simple data step. 

 

Either way the answer is missing. It would also be much faster to check this out than to ask. 

Ksharp
Super User
Sorry. 
If one single obs(x1) is MISSING ......
sameer112217
Quartz | Level 8

Hello Ksharp and Reeza!

 

Thanks for the explanation. Just to make it clear I am explaining this

 

The logistic regression equation is: (just an example

logit(p) = -4.48 + 0.11 x AGE + 1.16 x SMOKING

 

I am  asking for one below

 

logit(p) = -4.48 + 0.11 x AGE (Just one equation)

 

and if age value is missing ...what would be outcome?  0? or missing value? or some value

 

Sameer

 

 

Rick_SAS
SAS Super FREQ

The predicted value is missing for every observation in which any explanatory variable in the model is missing. The regression model cannot compute a predicted value (or a residual) when there is a missing value on the right-hand side of the  model.

sameer112217
Quartz | Level 8

Thank you everyone for the help

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