Hi all,
I am I am trying to replicate some results from book: Logistic Regression Models. Hilbe J, 2009. Pages: 202-204. Using titanic dataset.
Lamentably my results are not the same that book results.
Below I attached some results from this book and my resullts.
Please any comments I would grateful.
![Click image for larger version
Name: Páginas desde[Hilbe,_Joseph_M]_Logistic_regression_models(b-ok.org)-2_Página_1.png
Views: 1
Size: 40.2 KB
ID: 1475931](filedata/fetch?id=1475931&d=1545416244&type=full)
![Click image for larger version
Name: Páginas desde[Hilbe,_Joseph_M]_Logistic_regression_models(b-ok.org)-2_Página_2.png
Views: 1
Size: 59.4 KB
ID: 1475932](filedata/fetch?id=1475932&d=1545416259&type=full)
![Click image for larger version
Name: Páginas desde[Hilbe,_Joseph_M]_Logistic_regression_models(b-ok.org)-3.png
Views: 1
Size: 18.5 KB
ID: 1475933](filedata/fetch?id=1475933&d=1545416278&type=full)
I am I am trying to replicate some results from book: Logistic Regression Models. Hilbe J, 2009. Pages: 202-204. Using titanic dataset.
Lamentably my results are not the same that book results.
Below I attached some results from this book and my resullts.
Please any comments I would grateful.
Code:
. logit sur i.sex##i.class, 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 | Coef. Std. Err. z P>|z| [95% Conf. Interval] ---------------+---------------------------------------------------------------- sex | man | -4.206016 .5307502 -7.92 0.000 -5.246267 -3.165764 | class | 2nd class | -1.594815 .5871695 -2.72 0.007 -2.745646 -.4439844 3rd class | -3.726095 .526913 -7.07 0.000 -4.758825 -2.693365 | sex#class | man#2nd class | .4202889 .644876 0.65 0.515 -.8436449 1.684223 man#3rd class | 2.801977 .5621158 4.98 0.000 1.70025 3.903703 | _cons | 3.562466 .5070426 7.03 0.000 2.56868 4.556251 -------------------------------------------------------------------------------- . 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 --------------------------------------------------------------------------------
Comment