gra 5917 public opinion and input politics. lecture september 16h 2010 lars c. monkerud, department...

24
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

Upload: amanda-bath

Post on 31-Mar-2015

218 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: 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 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

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

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:

L

L

1log

L

1

1

e

eP

P

Pee P

P

i.e. the odds of ”success” vs. ”failure”; e is the odds-ratio (OR)

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

Logistic regression

• Intuitively appealing since P=f(Xk) increases in L as factor Xk changes, but slowly initially and as P approaches 1:

0

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

L(X)

P

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

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)

kkii

i

iii X

P

P0

n

nlogLLogit

kkcc

ii

c

ii

cc XP

P

0n

1

n

1

1logLLogit

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

Logistic regression in SPSS

Choose Analyze > Generalized Linear Models

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

Logistic regression in SPSS

Choose Binary logistic

A flexible tool with many possible model specifications

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

Logistic regression in SPSS

Choose dependent variable

Choose reference category, i.e. to model P(not in ref. category)

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

Logistic regression in SPSS

Choose predictors: class variables (factors) or contiuous variables (covariates)

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

Logistic regression in SPSS

Build model

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

Presenting changes in P(y=1) from logistic regression results

Have estimated L=0.4+1.2·X for X ranging from -4 to 10

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

Presenting changes in P(y=1) from logistic regression results

Have estimated L=0.4+1.2·X for X ranging from -4 to 10

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

Excercises (I)

a) You are interested in how people’s age influences their general feeling of happiness. Use the XWVSEVS_1981_2000_v20060423.sav data set supplied under the PolEc Dataset folder on It’s 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 indivual’s 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).

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

Analysis of panel data

0it A Ait B Bi ity X X e

• Given the correct model… A time-invariant covariate…

1

01

Nk k

it A Ait i itk

y X D e

…estimating the model

will give unbiased estimates of A: the Dk exhaust varaiation between cross–section units (i); i.e. influence from all observable and unobservable time-invariant variables are accounted for

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

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 variable 2) Create dummies with syntax, e.g.:

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

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

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

Analysis of panel data in SPSS (II)

Click Continue

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

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…

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

Analysis of panel data in SPSS (II)

Click Fixed…

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

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

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

Analysis of panel data in SPSS (II)

Click OK to start analysis

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

A note on within R2

In the output from the mixed… procedure we get estimates of residuals:

The often reported measure of within R2 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

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

Analysis of panel data (II)…

• Instead of the model… 1

01

Nk k

it A Ait i itk

y X D e

…one could estimate the random effects model

Valid if the group effect vi (viewed as a disturbance term) is uncorrelated with other regressors… (and RE estimator of A will be more efficient than the FE estimator)

0it A Ait B Bi i ity X X v e

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

Analysis of panel data in SPSS (II)

Click Random and build random terms in same way as you would build fixed terms

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

Excercises (II)

a) Use the 60panel…sav set supplied under today’s lecture.

a) Redo the P&T’s 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&T’s 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. 76-77 in P&T).