I am I am trying to replicate some results from book: Logistic Regression Models. Hilbe J, 2009. Pages: 202-204. Using titanic dataset. Below I attached some results from this book and my resullts.
Code:
. logit sur i.sex##i.class, or nolog Logistic regression Number of obs = 1316 LR chi2(5) = 515.16 Prob > chi2 = 0.0000 Log likelihood = -615.79775 Pseudo R2 = 0.2949 -------------------------------------------------------------------------------- survived | Odds Ratio Std. Err. z P>|z| [95% Conf. Interval] ---------------+---------------------------------------------------------------- sex | man | .0149056 .0079112 -7.92 0.000 .0052671 .0421819 | class | 2nd class | .202946 .1191637 -2.72 0.007 .0642068 .6414754 3rd class | .0240867 .0126916 -7.07 0.000 .0085757 .0676529 | sex#class | man#2nd class | 1.522401 .9817601 0.65 0.515 .4301398 5.388261 man#3rd class | 16.47718 9.262086 4.98 0.000 5.475316 49.58575 | _cons | 35.25 17.87325 7.03 0.000 13.04859 95.22579 --------------------------------------------------------------------------------
0 Response to Trying to get same results from Book: Logistic Regression Models. Hilbe J, 2009.
Post a Comment