[R] Nagelkerke Pseudo R-squared

varinsacha at yahoo.fr varinsacha at yahoo.fr
Sun Jul 19 07:19:20 CEST 2015


Already answered many thanks Frank.
Best Regards
SV

Envoyé de mon iPhone

Le 18 juil. 2015 à 20:39, varin sacha <varinsacha at yahoo.fr> a écrit :

> Thanks Frank for your response.
> 
> I have used the rms package. 
> Reproducible example here below :
> 
> install.packages("rms") 
> library(rms) 
> a=c("tres grand", "grand", "petit","petit","tres grand","grand","petit","petit","tres grand","grand") 
> b=c("homme", "homme", "femme", "femme", "femme", "homme", "homme", "homme", "femme", "femme") 
> h <- orm(a ~ b) 
> h
> 
> The Nagelkerke R2 = 0.074. Is it right ?
> 
> Best Regards,
> 
> SV
> 
> 
> 
> ----- Mail original -----
> De : Frank Harrell <f.harrell at vanderbilt.edu>
> À : r-help at r-project.org
> Cc : 
> Envoyé le : Samedi 18 juillet 2015 19h51
> Objet : Re: [R] Nagelkerke Pseudo R-squared
> 
> It's implemented in the R rms package's lrm and orm functions.
> 
> 
> 
> 
> -----
> Frank Harrell
> Department of Biostatistics, Vanderbilt University
> --
> View this message in context: http://r.789695.n4.nabble.com/Nagelkerke-Pseudo-R-squared-tp4710014p4710031.html
> Sent from the R help mailing list archive at Nabble.com.
> 
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
> 
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list