BookmarkSubscribeRSS Feed
knighsson
Obsidian | Level 7

Hello,

I want to know how to get r-square in the logistic regression. My code is below.

 

Thank you!

 

proc surveylogistic data=nh.diseases_pa1836_1 nomcar;

class t180 age RIAGENDR PIR SDDSRVYR RIDRETH1/ param=glm;

    strata SDMVSTRA;

    cluster SDMVPSU;

    weight glucwt4yr;

domain eligible;

model BMI_outcome= age RIAGENDR PIR SDDSRVYR   RIDRETH1 totalcounts t180/ vadjust=none df=none link=glogit;

lsmeans t180/ cl oddsratio adjust =tukey;

run;

 

3 REPLIES 3
knighsson
Obsidian | Level 7
Thank you for your response, I saw that thread, but I also want to know how can i get the adjusted r-square in the logistic regression.
Thank you!
knighsson
Obsidian | Level 7
In addition, I used "proc surveylogistic" statement, so I wonder would it be appropriate if i use "proc surveylogistic " or "proc qlim" to get the r square.
Thank you!

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

Mastering the WHERE Clause in PROC SQL

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.

Discussion stats
  • 3 replies
  • 854 views
  • 0 likes
  • 2 in conversation