Dates Presentations Wed / Fri Ex. 4, logistic regression, Monday Dec 7 th Final Tues. Dec 8 th, 3:30.

Slides:



Advertisements
Similar presentations
Selecting a Data Analysis Technique: The First Steps
Advertisements

Statistical Analysis SC504/HS927 Spring Term 2008
Sociology 680 Multivariate Analysis Logistic Regression.
Econometrics I Professor William Greene Stern School of Business
Linear Regression.
Brief introduction on Logistic Regression
Analysis of Categorical Data Nick Jackson University of Southern California Department of Psychology 10/11/
Logistic Regression I Outline Introduction to maximum likelihood estimation (MLE) Introduction to Generalized Linear Models The simplest logistic regression.
Logistic Regression.
Limited Dependent Variables
Bivariate Analysis Cross-tabulation and chi-square.
Regression With Categorical Variables. Overview Regression with Categorical Predictors Logistic Regression.
April 25 Exam April 27 (bring calculator with exp) Cox-Regression
Logistic Regression Multivariate Analysis. What is a log and an exponent? Log is the power to which a base of 10 must be raised to produce a given number.
GRA 6020 Multivariate Statistics; The Linear Probability model and The Logit Model (Probit) Ulf H. Olsson Professor of Statistics.
Introduction to Logistic Regression. Simple linear regression Table 1 Age and systolic blood pressure (SBP) among 33 adult women.
An Introduction to Logistic Regression JohnWhitehead Department of Economics Appalachian State University.
Logistic Regression Biostatistics 510 March 15, 2007 Vanessa Perez.
An Introduction to Logistic Regression
Logistic Regression Chapter 8.
Standard Binary Logistic Regression
Logistic Regression – Basic Relationships
Logistic regression for binary response variables.
STAT E-150 Statistical Methods
SW388R7 Data Analysis & Computers II Slide 1 Logistic Regression – Hierarchical Entry of Variables Sample Problem Steps in Solving Problems.
Wednesday PM  Presentation of AM results  Multiple linear regression Simultaneous Simultaneous Stepwise Stepwise Hierarchical Hierarchical  Logistic.
Hierarchical Binary Logistic Regression
Multinomial Logistic Regression Basic Relationships
Logistic Regression.
April 6 Logistic Regression –Estimating probability based on logistic model –Testing differences among multiple groups –Assumptions for model.
Social Science Research Design and Statistics, 2/e Alfred P. Rovai, Jason D. Baker, and Michael K. Ponton Pearson Chi-Square Contingency Table Analysis.
AN INTRODUCTION TO LOGISTIC REGRESSION ENI SUMARMININGSIH, SSI, MM PROGRAM STUDI STATISTIKA JURUSAN MATEMATIKA UNIVERSITAS BRAWIJAYA.
Logistic (regression) single and multiple. Overview  Defined: A model for predicting one variable from other variable(s).  Variables:IV(s) is continuous/categorical,
Logistic Regression. Conceptual Framework - LR Dependent variable: two categories with underlying propensity (yes/no) (absent/present) Independent variables:
When and why to use Logistic Regression?  The response variable has to be binary or ordinal.  Predictors can be continuous, discrete, or combinations.
Linear vs. Logistic Regression Log has a slightly better ability to represent the data Dichotomous Prefer Don’t Prefer Linear vs. Logistic Regression.
APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE CJ 525 MONMOUTH UNIVERSITY Juan P. Rodriguez.
April 4 Logistic Regression –Lee Chapter 9 –Cody and Smith 9:F.
Week 5: Logistic regression analysis Overview Questions from last week What is logistic regression analysis? The mathematical model Interpreting the β.
Logistic Regression July 28, 2008 Ivan Katchanovski, Ph.D. POL 242Y-Y.
Forecasting Choices. Types of Variable Variable Quantitative Qualitative Continuous Discrete (counting) Ordinal Nominal.
Assessing Binary Outcomes: Logistic Regression Peter T. Donnan Professor of Epidemiology and Biostatistics Statistics for Health Research.
Regression & Correlation. Review: Types of Variables & Steps in Analysis.
Examining Relationships in Quantitative Research
Logistic Regression. Linear Regression Purchases vs. Income.
Multiple Logistic Regression STAT E-150 Statistical Methods.
Logistic Regression Analysis Gerrit Rooks
Qualitative and Limited Dependent Variable Models ECON 6002 Econometrics Memorial University of Newfoundland Adapted from Vera Tabakova’s notes.
Logistic Regression Saed Sayad 1www.ismartsoft.com.
1 Introduction to Modeling Beyond the Basics (Chapter 7)
4. Binary dependent variable Sometimes it is not possible to quantify the y’s Ex. To work or not? To vote one or other party, etc. Some difficulties: 1.Heteroskedasticity.
Logistic Regression Hal Whitehead BIOL4062/5062.
Roger B. Hammer Assistant Professor Department of Sociology Oregon State University Conducting Social Research Logistic Regression Categorical Data Analysis.
Logistic Regression and Odds Ratios Psych DeShon.
Nonparametric Statistics
Instructor: R. Makoto 1richard makoto UZ Econ313 Lecture notes.
LOGISTIC REGRESSION. Purpose  Logistical regression is regularly used when there are only two categories of the dependent variable and there is a mixture.
Logistic Regression: Regression with a Binary Dependent Variable.
Chapter 13 LOGISTIC REGRESSION. Set of independent variables Categorical outcome measure, generally dichotomous.
Nonparametric Statistics
BINARY LOGISTIC REGRESSION
EHS Lecture 14: Linear and logistic regression, task-based assessment
Logistic Regression APKC – STATS AFAC (2016).
Multiple logistic regression
Nonparametric Statistics
Categorical Data Analysis Review for Final
Introduction to Logistic Regression
Modeling with Dichotomous Dependent Variables
Logistic Regression.
Presentation transcript:

Dates Presentations Wed / Fri Ex. 4, logistic regression, Monday Dec 7 th Final Tues. Dec 8 th, 3:30

ps366 logistic regression

First, questions from Friday? Recoding Transforming variables Pew Survey – Form A vs. Form B (grrr)

Exercise 4 Build a model that predicts how people respond to a survey question (Obama v Romney – Think casually – Y = dichotomous (yes or no; agree or disagree) X1 (party ID....what rank / order?) X2 X3

Group data analysis Likely, you will use cross-tabs and Chi-square tests for most / many hypotheses Also, build one multi-var model in.... – Logistic regression if dichotomous variable – Linear regression if ordinal / interval

Logistic Regression Going a bit beyond Cross-tabulation – Dichotomous dependent variable regression – Cross-tabs & Chi Square are ‘bivariate’ tests Is X1 associated with Y? This does not control for effect X2, X3, etc. on Y

Binary logistic regression Dichotomous dependent variable – Test for effects of multiple independent variables Interval (age) Ordinal (party, education) Nominal (gender)

Binary logistic regression Dichotomous dependent variable, multiple independent variables – Y = Romney or Obama X1 = Party ID (0= others, 1= Democrat; or 1=D, 2=I, 3=R) X2 = Age X3 = Education

Logistic regression Several different estimators – Logit – Probit – Scobit – Similar in practice, choice depends on distribution of Y (Dependent variable)

Logistic regression

Logistic vs. Linear Regression

Logistic Regression

Maximum Likelihood Estimation (MLE) – Identifies model that predicts if Y – Initial ML function is estimated – Repeated iterations until the Log Likelihood (LL) does not change – We don’t do this by hand

Logistic Regression Dependent variable is a ‘logit’ Natural log of the odds

Logistic Regression You are estimating the probability of an event occurring Prob (event) = 1 / [ 1+e (-BO + B1X) ] Where X is the independent variable, 0 is a constant, and e is the natural log (2.718)

Logistic Regression With more than one independent variable: Prob(event) = e z / (1+ e z ); or 1 / (1 + e -z ) where Z= Bo + B 1 X 1 + B 2 X B n X n

Logistic Regression Fit: Pseudo R 2 – Various types, all imperfect Model Chi Square / Likelihood Ratio Test – Difference between LR for “baseline model” and the final model

Logistic regression So, – Substantive meaning of logit estimations not easy to interpret

Logistic Regression UCLA example Interpreting output – Classification table

Logistic Regression Interpreting output – Lots of stuff we don’t need – Variables not in the equation Ignore this, info about generating the ‘baseline model’ Skip to Block 1 Method = Enter

Logistic Regression Interpreting output – Model Summary These are “pseudo R2” value Another way to assess fit – Classification table Helps assess ‘fit’ of model Key: What % correctly classified? compares predictions of model to reality – (in this example......)

Logistic Regression Interpreting output – Variables in the Equation Similar to regression analysis – B (like slope estimate) – S.E. (error of estimate) – Wald (ratio of B to S.E.) – Sig (how significant is effect of X on Y?) – Exp(B)

Logistic Regression Interpreting output – B Estimates the odds of Y occurring... “the log of the odds.” (Yuck). The change in the log odds associated with a one unit change in the independent variable (Yuck x2) Is it significantly different than 0?

Logistic Regression Interpreting output – Wald test and sig. Is it significantly different than 0, Holding constant the effects of other X variables?

Logistic Regression Interpreting output – Exp(B) Substantive meaning of effect of X on Y If X changes from 0 to 1 (1 unit), the odds of Y being 1 increases by a factor of this. – if positive effect, larger than 1.0 – if negative effect, less than 1.0 (odds lower)

Exp(B), Odds ratio Ratio of y = 1 to y = 0 if probability of y =.5, odds ratio is /.5 = odds ratio of 1

Exp(B), Odds ratio Example – y = 1 if vote, 0 = not – Prob. of vote is.8; of not voting, 1-.8, or.2 – Odds = are ratio of prob. of y=1 to prop. y = 0 – odds of vote =.8/.2 = 4

Odds and probability

Logistic Regression Hypothesis testing – Overall, SPSS doesn’t give good information about the real effect of change in X on probability of being 0 or 1 on Y – It does let us test if effect of X on Y holds up when other X’s accounted for – It does tell us how well X’s predict Y