I was wondering if there's anyway to check if the equation is correct. I know for linear regression you can check with residuals. Is there something similar for logistic regression?
I'm not sure what you mean by "correct" or why you need to check. SAS themselves (or is it SAS itself?) does thorough checking of the results of each procedure, so we don't generally have to do that checking. If the data going into your logistic regression is correct, and your code is correct, then I would be happy to assume that the results are correct. So that's what I would check, the data and the code.
The most important thing for logistic regression is to have 5 to 10 events for each explanatory variable.
Example: if you have a variable to explain for N= 54 patients and 3 explanatory variables:
Var1 = numerical age counts as 1
Var2 = processing yes/no counts as 1
Var3 = occupational category (n = 8 ) counts as 7
So you must have: (1+1+7) x 5 = 45 < 54 patients (limit)
(1+1+7) x10=90 < 54 patients (not good at all) You have to think carefully before validating the model.
Hope this can help you.
Nearly 200 sessions are now available on demand in the Innovate Hub.
Watch Now →SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.
Find more tutorials on the SAS Users YouTube channel.