StatsReporting / stargazer

Python implementation of the R stargazer multiple regression model creation tool
Other
196 stars 48 forks source link

Pseudo R-squared for Logit #91

Closed samemon closed 1 year ago

samemon commented 2 years ago

When printing the summary for logit, Pseudo R-Squared isn't printed. Is there support for that?

abuabara commented 1 year ago

it would be interesting to be able to include r-squared (pseudo) for all glm. I can do that in one model, using add.lines = list(c("R2", paste(as.character(round(data.frame(performance::r2(model))[1,1], digits = 4))))) but this is not ideal, especially if you have a comparison of several models in the output, it doesn't work at all.

toobaz commented 1 year ago

@samemon fixed in master

@abuabara are you sure you are in the right place? This project is the Python version of stargazer.