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

Hello - what does one use for R-square in logistic regression...is it AUC?

1 ACCEPTED SOLUTION

Accepted Solutions
Ksharp
Super User

R-square is similar to R-square in PROC REG. but it is not AUC (c) statistic

 

proc logistic data=sashelp.class;
model sex=weight height/lackfit rsquare;
run;

 From ballardw:

There are a number of different model fit statistics available. It also depends on exactly which procedure as several do logistic regression and the nature of your data: Rsquare, -2 Log Likelihood, AIC, SC, Hosmer-Lemeshow tests are some available in Proc Logistic for tests/metrics. Look at the MODEL options.

View solution in original post

3 REPLIES 3
Seth
Calcite | Level 5

Hello, is there an R-square in logistic regression? Is this the best goodness of fit or which goodness of fit is better to use?

ballardw
Super User

There are a number of different model fit statistics available. It also depends on exactly which procedure as several do logistic regression and the nature of your data: Rsquare -2 Log Likelihood, AIC SC Homer-Lemeshow test are some available in Proc Logistic for tests/metrics. Look at the MODEL options. 

Ksharp
Super User

R-square is similar to R-square in PROC REG. but it is not AUC (c) statistic

 

proc logistic data=sashelp.class;
model sex=weight height/lackfit rsquare;
run;

 From ballardw:

There are a number of different model fit statistics available. It also depends on exactly which procedure as several do logistic regression and the nature of your data: Rsquare, -2 Log Likelihood, AIC, SC, Hosmer-Lemeshow tests are some available in Proc Logistic for tests/metrics. Look at the MODEL options.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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
  • 3 replies
  • 18931 views
  • 0 likes
  • 3 in conversation