I am running a logit function, and am struggling with the goodness of fit question (or more accurately explanatory power question).

I understand that for logit function, Stata results a pseudo R^2, but I don't quite know what this pseudo R^2 is or how it's calculated.

Also, we have been told to do confusion matrix after the logit. Not sure confusion matrix is standard terminology, but it's essentially a table that compares predictions to reals...
Actual "yes" Actual "no"
Predict "yes" 120 179
Predict "no" 189 110
Is there a command for or way to generate it quickly in Stata?