1 / 21

AMMBR II

AMMBR II. Gerrit Rooks. Checking assumptions in logistic regression. Hosmer & Lemeshow Residuals Multi-collinearity Cooks distance. Hosmer & Lemeshow. Test divides sample in subgroups, checks whether difference between observed and predicted is about equal in these groups.

scout
Download Presentation

AMMBR II

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. AMMBR II Gerrit Rooks

  2. Checking assumptions in logistic regression • Hosmer & Lemeshow • Residuals • Multi-collinearity • Cooks distance

  3. Hosmer & Lemeshow Test divides sample in subgroups, checks whether difference between observed and predicted is about equal in these groups Test should not be significant (indicating no difference)

  4. Hosmer & Lemeshow Average Probability In j th group

  5. First logistic regression

  6. Then postestimation command

  7. Including interaction term helps

  8. Multicollinearity

  9. Residuals • Residual = observed value – predicted value / square root of variation

  10. Residuals

  11. Inspect observations with large residuals (>2.5 a 3)

  12. Cooks distance (< 1) Prediction for j from all observations Prediction for j for observations excluding observation i Number of parameter Means square error

  13. To Stata • Use apilog.dta • Awards = dependent variable • For Awards inspect frequency counts • Recode Awards into binary variable • Estimate a LR model using yr_rnd meals enroll as predictors

  14. To Stata • Inspect classification table • Perform Hosmer & Lemeshow test • Inspect standardized residuals • Inspect cooks distance • See if interaction effects improve fit

  15. Is the Wald test an accurate test to the significance of coefficients in Logisticregressionanalysis? • Yes, justlikeregressionanalysis. • Yes, it is accurate, although a Likelihood ratio test is more efficient • No, unlikeregressionanalysis, the Wald test is biased, especiallyforrelativelysmallcoefficients . • No, unlikeregressionanalysis, the Wald test is biased, especiallyforrelativelylargecoefficients .

  16. Use LRtest to check the significance effect of the variable yr_rnd • Use auto.dta (if not on your pc then) • use http://www.stata-press.com/data/r11/auto • Predict which car will be foreign, using weigth and mpg as predictors

  17. Is the interaction between weigth and mpg significant? • Tip: always center variable before making interactionvariable.

  18. use http://www.stata-press.com/data/r11/choice • Does income, gender or type of car (European, Japanese or American) predict whether a car will be bought (choice)?

More Related