GRA 5917 Public Opinion and Input Politics. Lecture September 16h 2010 Lars C. Monkerud, Department of Public Governance, BI Norwegian School of Management.

Slides:



Advertisements
Similar presentations
Dummy Dependent variable Models
Advertisements

Continued Psy 524 Ainsworth
PANEL DATA 1. Dummy Variable Regression 2. LSDV Estimator
Statistical Analysis SC504/HS927 Spring Term 2008
Sociology 680 Multivariate Analysis Logistic Regression.
Logistic Regression Psy 524 Ainsworth.
Lecture 8 (Ch14) Advanced Panel Data Method
Logistic Regression.
1 Chapter 2 Simple Linear Regression Ray-Bing Chen Institute of Statistics National University of Kaohsiung.
Outliers Split-sample Validation
Chapter 13 Multiple Regression
Chapter 3 Simple Regression. What is in this Chapter? This chapter starts with a linear regression model with one explanatory variable, and states the.
Multinomial Logistic Regression
GRA 5917: Input Politics and Public Opinion Basic regression (including interaction effects) in political economy GRA 5917 Public Opinion and Input Politics.
Basic Business Statistics, 11e © 2009 Prentice-Hall, Inc. Chap 14-1 Chapter 14 Introduction to Multiple Regression Basic Business Statistics 11 th Edition.
Outliers Split-sample Validation
GRA 5917: Input Politics and Public Opinion Logistic regression in political economy GRA 5917 Public Opinion and Input Politics. Lecture, September 9th.
Logistic Regression Biostatistics 510 March 15, 2007 Vanessa Perez.
GRA 5917: Input Politics and Public Opinion Introduction GRA 5917 Public Opinion and Input Politics. Introductory Lecture, August 19th 2010 Lars C. Monkerud,
GRA 5917: Input Politics and Public Opinion Data manipulation and descriptive statistics GRA 5917 Public Opinion and Input Politics. Lecture, August 26th.
Multiple Regression – Basic Relationships
Regression Model Building Setting: Possibly a large set of predictor variables (including interactions). Goal: Fit a parsimonious model that explains variation.
Logistic Regression – Basic Relationships
Generalized Linear Models
Marshall University School of Medicine Department of Biochemistry and Microbiology BMS 617 Lecture 12: Multiple and Logistic Regression Marshall University.
Review of Lecture Two Linear Regression Normal Equation
Logistic Regression II Simple 2x2 Table (courtesy Hosmer and Lemeshow) Exposure=1Exposure=0 Disease = 1 Disease = 0.
9. Binary Dependent Variables 9.1 Homogeneous models –Logit, probit models –Inference –Tax preparers 9.2 Random effects models 9.3 Fixed effects models.
MODELS OF QUALITATIVE CHOICE by Bambang Juanda.  Models in which the dependent variable involves two ore more qualitative choices.  Valuable for the.
Inference for regression - Simple linear regression
Wednesday PM  Presentation of AM results  Multiple linear regression Simultaneous Simultaneous Stepwise Stepwise Hierarchical Hierarchical  Logistic.
“Analyzing Health Equity Using Household Survey Data” Owen O’Donnell, Eddy van Doorslaer, Adam Wagstaff and Magnus Lindelow, The World Bank, Washington.
Using SPSS for Windows Part II Jie Chen Ph.D. Phone: /6/20151.
SW388R7 Data Analysis & Computers II Slide 1 Multinomial Logistic Regression: Complete Problems Outliers and Influential Cases Split-sample Validation.
April 6 Logistic Regression –Estimating probability based on logistic model –Testing differences among multiple groups –Assumptions for model.
Multilevel Linear Models Field, Chapter 19. Why use multilevel models? Meeting the assumptions of the linear model – Homogeneity of regression coefficients.
Various topics Petter Mostad Overview Epidemiology Study types / data types Econometrics Time series data More about sampling –Estimation.
University of Warwick, Department of Sociology, 2014/15 SO 201: SSAASS (Surveys and Statistics) (Richard Lampard) Week 7 Logistic Regression I.
Chap 14-1 Copyright ©2012 Pearson Education, Inc. publishing as Prentice Hall Chap 14-1 Chapter 14 Introduction to Multiple Regression Basic Business Statistics.
When and why to use Logistic Regression?  The response variable has to be binary or ordinal.  Predictors can be continuous, discrete, or combinations.
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.
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.
1 We will now look at the properties of the OLS regression estimators with the assumptions of Model B. We will do this within the context of the simple.
Logistic regression. Recall the simple linear regression model: y =  0 +  1 x +  where we are trying to predict a continuous dependent variable y from.
Logistic Regression. Linear Regression Purchases vs. Income.
Multiple Logistic Regression STAT E-150 Statistical Methods.
Basic Business Statistics, 10e © 2006 Prentice-Hall, Inc.. Chap 14-1 Chapter 14 Introduction to Multiple Regression Basic Business Statistics 10 th Edition.
Logistic Regression Analysis Gerrit Rooks
Introduction to Multiple Regression Lecture 11. The Multiple Regression Model Idea: Examine the linear relationship between 1 dependent (Y) & 2 or more.
More on regression Petter Mostad More on indicator variables If an independent variable is an indicator variable, cases where it is 1 will.
Logistic Regression and Odds Ratios Psych DeShon.
Additional Regression techniques Scott Harris October 2009.
Marshall University School of Medicine Department of Biochemistry and Microbiology BMS 617 Lecture 13: Multiple, Logistic and Proportional Hazards Regression.
LOGISTIC REGRESSION. Purpose  Logistical regression is regularly used when there are only two categories of the dependent variable and there is a mixture.
BINARY LOGISTIC REGRESSION
Logistic Regression APKC – STATS AFAC (2016).
Probability and Statistics for Computer Scientists Second Edition, By: Michael Baron Section 11.1: Least squares estimation CIS Computational.
CHAPTER 7 Linear Correlation & Regression Methods
Logistic Regression.
REGRESSION DIAGNOSTIC II: HETEROSCEDASTICITY
PANEL DATA 1. Dummy Variable Regression 2. LSDV Estimator
Probability and Statistics for Computer Scientists Second Edition, By: Michael Baron Section 11.1: Least squares estimation CIS Computational.
Jeffrey E. Korte, PhD BMTRY 747: Foundations of Epidemiology II
Introduction to Logistic Regression
Simple Linear Regression
Multiple Regression – Split Sample Validation
Multinomial Logistic Regression: Complete Problems
Presentation transcript:

GRA 5917 Public Opinion and Input Politics. Lecture September 16h 2010 Lars C. Monkerud, Department of Public Governance, BI Norwegian School of Management GRA 5917: Input Politics and Public Opinion Panel data regression in political economy

First, though: A short note on logistic regression (from last week)… L (the log-odds, the logit) theoretically varies between and -, but P (reasonably) stays within the 0-1 range: i.e. the odds of success vs. failure; e is the odds-ratio (OR)

Logistic regression Intuitively appealing since P=f(X k ) increases in L as factor X k changes, but slowly initially and as P approaches 1:

Logistic regression Extensions and special variants of the logit model: the multinomial logit model, which models responses in i=1 to n categories (with i=n the reference category) the ordinal logit model, which models responses in i=1 to n ordered categories (with i=n the reference category), assuming that the odds- ratio effect on the odds of a lower ordered event (i.e. numerator events vs. denominator events) is independent of the observed category response (aka the proportional odds model)

Logistic regression in SPSS Choose Analyze > Generalized Linear Models

Logistic regression in SPSS Choose Binary logistic A flexible tool with many possible model specifications

Logistic regression in SPSS Choose dependent variable Choose reference category, i.e. to model P(not in ref. category)

Logistic regression in SPSS Choose predictors: class variables (factors) or contiuous variables (covariates)

Logistic regression in SPSS Build model

Presenting changes in P(y=1) from logistic regression results Have estimated L= ·X for X ranging from -4 to 10

Presenting changes in P(y=1) from logistic regression results Have estimated L= ·X for X ranging from -4 to 10

Excercises (I) a)You are interested in how peoples age influences their general feeling of happiness. Use the XWVSEVS_1981_2000_v sav data set supplied under the PolEc Dataset folder on Its Learning. a)Create a new variable happy that takes on the value 1 if the individual in question reports to be happy (very or quite) and 0 otherwise. Run a simple binary logistic regression with happy as dependent variable and (continous) age (x003) and the indivuals houshold income (x047) as independent variables. Comment on the results and graph the realtionship between the probability of being happy and age (Tip: Use descriptive analysis to find the minimum and maximum of age, i.e. the range for which reasonable predictions of happiness can be made, and graph the relationship holding income level constant at the mean). b)Redo the analysis with year of birth (x003) added to the model. Comment on the results in the SPSS output and again graph the relationship between age and the probability of being happy (holding both year of birth and income cosntant at their respective means).

Analysis of panel data Given the correct model… A time-invariant covariate… …estimating the model will give unbiased estimates of A : the D k exhaust varaiation between cross–section units (i); i.e. influence from all observable and unobservable time-invariant variables are accounted for

Analysis of panel data in SPSS (I) OLS regression with country specific (and time specific) dummy variables added to the equation (as independent variables) with Analyze > Regression > Linear… problem: How create a large set of dummy variables? DO REPEAT d=c1 to c60 /i=1 to 60. * here, d defines the array of dummy variables that will be generated (c1, c2 to c60); The i controls the number of repeats. COMPUTE d=(cc=i). * computes the ith element in d (conveniently named ci) as 1 if cc=i, as 0 otherwise. END REPEAT. EXECUTE. Auto-recode the variable indexing the groups (e.g. individuals, countries by proper names) into a running numeric code (Transform > Automatic Recode…) 1) Recode group variable2) Create dummies with syntax, e.g.:

Analysis of panel data in SPSS (II) Or use the mixed models feature: Analyze > Mixed Models > Linear… (Maximum Likelihood estimation); creates group dummies from class variables automatically

Analysis of panel data in SPSS (II) Click Continue

Analysis of panel data in SPSS (II) Move the dependent variable into Dependent frame and class independents into Factor(s) and continuous independents into Covariate(s); choose REML estimation under Estimation… and Parameter Estimates under Statistics…

Analysis of panel data in SPSS (II) Click Fixed…

Analysis of panel data in SPSS (II) Mark variables that will appear in the Factors and Covariates frame and Add them to the Model frame. Click Continue

Analysis of panel data in SPSS (II) Click OK to start analysis

A note on within R 2 In the output from the mixed… procedure we get estimates of residuals: The often reported measure of within R 2 is simply: (Residual Model with group effects only – Residual Full Model ) / Residual Model with group effects only i.e. the proprortion of explainable variance (after group effects have been taken into account) that is explained by variables varying within groups

Analysis of panel data (II)… Instead of the model… …one could estimate the random effects model Valid if the group effect v i (viewed as a disturbance term) is uncorrelated with other regressors… (and RE estimator of A will be more efficient than the FE estimator)

Analysis of panel data in SPSS (II) Click Random and build random terms in same way as you would build fixed terms

Excercises (II) a)Use the 60panel…sav set supplied under todays lecture. a)Redo the P&Ts analysis in model (1) in table 3.2 (Persson and Tabellini 2005:44). Compare the results with those presented in the book. b)Redo the P&Ts analysis in model (2) and (3) in table 3.2 (Persson and Tabellini 2005:44). (Tip: Before analysis, use select cases using the criteria discussed on pp in P&T).