Regresión Logística (Disdier OM)

3,812 views
3,633 views

Published on

Regresión logística: Probit versus Logic

Published in: Health & Medicine
1 Comment
3 Likes
Statistics
Notes
No Downloads
Views
Total views
3,812
On SlideShare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
0
Comments
1
Likes
3
Embeds 0
No embeds

No notes for slide
  • e ^ Beta
  • Regresión Logística (Disdier OM)

    1. 1. Regresión Logística Logit y Probit<br />Prof. Orville M. Disdier, BS, MS, Ed.Dc.<br />
    2. 2. What is a Logistic Regression Model?<br />The purpose of logistic regression is to produce a mathematical equation that relates the probability of an outcome to the particular value of risk factor variables. <br />A model might predict the probability of occurrence of a myocardial infarction (MI) over a 5-year period, given a patient’s age, sex, race, blood pressure, cholesterol level, and smoking status.<br />
    3. 3. What is a Logistic Regression Model?<br />In Epi Info, a model can be expressed as:<br />MI = age + sex + race + blood pressure + cholesterol + smoking status<br />The results include values for the beta coefficients, but more important for epidemiologists, can produce an odds ratio (OR) for each value of a risk factor compared with its baseline (absent or normal) state.<br />
    4. 4. Choosing the Outcome Variable<br />The outcome variable is a dichotomous variable (two values) for which other variables may provide an explanation.<br />Often, the outcome variable indicates the presence or absence of a disease. <br />To explore the risk factors for premature birth, however, the outcome variable might be low birth weight.<br />
    5. 5. Choosing the Outcome Variable<br />The coding of this variable must be in 0/1.<br />1 for persons who experienced the event studied (disease or low weight)<br />0 for persons who did not (no disease or normal weight)<br />EpiInfo does the coding if the outcome variable is a Yes/No variable.<br />
    6. 6. Técnicas de regresión logística <br />Se puede decir que existen varias técnicas de regresión logística para resolver funciones con una variable dependiente dicotómica y varias explicativas, de los cuales se pueden mencionar a los siguientes:<br />modelo MLP (modelo lineal de probabilidad)<br />modelo Logit<br />modelo Probit<br />
    7. 7. Regresión Logit y Probit<br />El modelo lineal de probabilidad, es el modelo más sencillo pero, por lo mismo, tiene limitaciones estadísticas y de interpretación y es menos recomendable su uso.<br />Los modelos Logit y Probit son bastante parecidos y sus resultados son comparables. <br />
    8. 8. Regresión Logit y Probit<br />La diferencia entre sus resultados es que las “colas” del Logit son ligeramente más planas, mientras que la curva normal o Probit se acerca más rápidamente a los ejes que limitan la probabilidad (ver Figura ).<br />En general es más usado el Logit que el Probit (FERRAN: 1991).<br />
    9. 9. Modelos &quot;logit&quot; y &quot;probit&quot;<br />
    10. 10. Regresión Logit y Probit<br />
    11. 11. Regresión ProbitExample 1<br />Suppose that we are interested in factors that influence whether or not a political candidate wins an election.<br />Our outcome variable has only two possible values: win or not win.<br />We believe that factors such as the amount of money spent on the campaign, the amount of time spent campaigning negatively and whether the candidate is an incumbent affect whether the candidate wins the election.<br />Because our outcome variable is binary (either the candidate wins or does not win), we need to use a model that handles this feature correctly.<br />
    12. 12. Regresión ProbitExample 2<br />Some people have heart attacks and others don&apos;t. <br />We would like to see if exercise, age and gender influences whether or not someone has a heart attack.<br />Again, we have a binary outcome: have heart attack or not.<br />
    13. 13. Regresión ProbitExample 3<br />Many undergraduates wish to continue their education in graduate school.<br />In their application to any given graduate program, they include their GRE scores and their GPA from their undergraduate institution.<br />Some students are graduating from very prestigious institutions, while others are graduating from not-so-prestigious institutions.<br />Many months after sending in their applications, students receive either a thick or a thin envelope from the graduate program to which they applied: some were admitted and others were not.<br />
    14. 14. Regresión LogitExample 1<br />Suppose that we are interested in the factors that influence whether or not a political candidate wins an election. <br />The outcome (response) variable is binary (0/1); win or lose. <br />The predictor variables of interest are: the amount of money spent on the campaign, the amount of time spent campaigning negatively and whether or not the candidate is an incumbent. <br />Because the response variable is binary we need to use a model that handles 0/1 variables correctly.<br />
    15. 15. Regresión LogitExample 2<br />We wish to study the influence of age, gender and exercise on whether or not someone has a heart attack.<br />Again, we have a binary response variable, whether or not a heart attack occurs.<br />
    16. 16. Regresión LogitExample 3<br />How do variables, such as, GRE (Graduate Record Exam scores), GPA (grade point average), and prestige of the undergraduate program effect admission into graduate school?<br />The response variable, admit/don&apos;t admit, is a binary variable.<br />
    17. 17. Probit versus Logit<br />Neither the logit model nor the probit model are linear, which makes things difficult. To make the model linear, a transformation is done on the dependent variable.<br />In logit regression, the transformation is the logitfunction which is the natural log of the odds.<br />In probit models, the function used is the inverse of the standard normal cumulative distribution (a.k.a. a z-score).<br />In reality, this difference isn&apos;t too important: both transformations are equally good at linearizingthe model; which one you use is a matter of personal preference.<br />
    18. 18. Probit versus Logit<br />Both models need to have diagnostics done afterwards to check that the assumptions of the model have not been violated. Both methods use maximum likelihood, and so require more cases than a similar OLS model.<br />Unlike logit models, you don&apos;t get odds ratios with probitmodels. <br />In general, the logit coefficients are larger than the probit coefficients by a factor of 1.7.<br />However, this rule often does not apply when an independent variable has a high standard error (lots of variability).<br />
    19. 19. Outcomes: Probit versus Logit<br />Probit – SPSS outcome<br />Logit – SPSS outcome<br />
    20. 20. Regresión logística(Logitmodel)<br />Probabilidad, Función de Z, Outcome<br />Valor de la variable independiente<br />
    21. 21. Funciones (ecuaciones)<br />
    22. 22. Ejemplo<br />LogitModel<br />Death of heart disease<br />
    23. 23. Death of heart disease<br />This simplified model uses only three risk factors (age, sex, and blood cholesterol level) to predict the 10-year risk of death from heart disease.<br />This is the model that we fit:<br />β0 = − 5.0 (the intercept)<br />β1 = + 2.0<br />β2 = − 1.0<br />β3 = + 1.2<br />x1 = age in decades, less 5.0<br />x2 = sex, where 0 is male and 1 is female<br />x3 = cholesterol level, in mmol/L less 5.0<br />
    24. 24. Modelologit: Death of heart disease<br />
    25. 25. Modelologit: Death of heart disease<br />
    26. 26. Outputs: SPSS y SAS<br />LogitModel<br />
    27. 27. Using the Logit Model<br />                                                                    <br />crosstabs /tables=admit by topnotch.<br />
    28. 28. crosstabs /tables=admit by topnotch.<br />None of the cells are too small or empty (has no cases), so we will run our logit model. <br />
    29. 29. logistic regression admit with gre topnotch gpa.<br />.<br />                                                   <br />                         <br />
    30. 30. This shows the number of observations and the coding for the outcome variable, admit.<br />Block 0: Beginning Block<br />
    31. 31. Block 1: Method=Enter<br />.<br />                                                                      <br />For this reason, many researchers prefer to exponentiate <br />the coefficients and interpret them as odds-ratios.<br /> For example, we can say that for a one unit increase in gpa, the odds of being admitted to graduate school<br /> (vs. not being admitted) increased by a factor of 1.94. <br />
    32. 32. Output: SAS<br />
    33. 33. Output: SAS<br />

    ×