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: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

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
  • 949 views
  • 0 likes
  • 2 in conversation