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!