Rho Square and Adjusted Rho Square

44 views
Skip to first unread message

Afia Ibnat Subah

unread,
Apr 25, 2023, 3:34:32 PM4/25/23
to Biogeme
Hello Professor!
I wanted to know about the rho square value that is showed in the HTML file after running a biogeme model. There are two value namely "Rho-square for the init. model" and " Rho-square-bar for the init. model". Is any of these Adjusted  Rho Square value? Or they are simply the Rho Square of the model?

Thanks in advance!

Bierlaire Michel

unread,
Apr 25, 2023, 3:35:30 PM4/25/23
to aisuba...@gmail.com, Bierlaire Michel, Biogeme
See Section 7 of the report: https://transp-or.epfl.ch/documents/technicalReports/Bier23.pdf
> --
> You received this message because you are subscribed to the Google Groups "Biogeme" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to biogeme+u...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/biogeme/de361d75-0520-43ca-89a1-9e925500f419n%40googlegroups.com.

Michel Bierlaire
Transport and Mobility Laboratory
School of Architecture, Civil and Environmental Engineering
EPFL - Ecole Polytechnique Fédérale de Lausanne
http://transp-or.epfl.ch
http://people.epfl.ch/michel.bierlaire

Afia Ibnat Subah

unread,
Apr 26, 2023, 3:29:47 AM4/26/23
to Biogeme
Thank you for your help!

So from the file, I understand that it is not adjusted R square. Is there any way to get the adjusted R squared value in the HTML file? I am using python package, version biogeme 3.2.10.

Bierlaire Michel

unread,
Apr 26, 2023, 3:50:34 AM4/26/23
to aisuba...@gmail.com, Bierlaire Michel, Biogeme
Both are reported in the html file. What you call the “adjusted” rho square is labeled the "Rho-square-bar for the null model”
Note that you need to calculate the null loglikelihood to obtain it.
See the examples: https://github.com/michelbierlaire/biogeme/blob/master/examples/swissmetro/b01logit.py
> To view this discussion on the web visit https://groups.google.com/d/msgid/biogeme/9138756a-4471-400d-869e-d7f1b94b3656n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages