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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—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
  • 1631 views
  • 0 likes
  • 2 in conversation