estimating the dose-response function through the glm approach

31
ESTIMATING THE DOSE-RESPONSE FUNCTION THROUGH THE GLM APPROACH Barbara Guardabascio, Marco Ventura Italian National Institute of Statistics 7 th June 2013, Potsdam 1

Upload: kiara

Post on 15-Jan-2016

48 views

Category:

Documents


0 download

DESCRIPTION

ESTIMATING THE DOSE-RESPONSE FUNCTION THROUGH THE GLM APPROACH Barbara Guardabascio , Marco Ventura Italian National Institute of Statistics 7 th June 2013, Potsdam. Outline of the talk. Motivations;. literature references;. our contribution to the topic;. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: ESTIMATING THE DOSE-RESPONSE FUNCTION THROUGH THE GLM APPROACH

ESTIMATING THE DOSE-RESPONSE FUNCTION THROUGH THE GLM APPROACH

Barbara Guardabascio, Marco Ventura

Italian National Institute of Statistics

7th June 2013, Potsdam

1

Page 2: ESTIMATING THE DOSE-RESPONSE FUNCTION THROUGH THE GLM APPROACH

Outline of the talk

Motivations;

2

literature references;

our contribution to the topic;

the econometrics of the dose-response;

how to implement the dose-response;

our programs;

applications.

Page 3: ESTIMATING THE DOSE-RESPONSE FUNCTION THROUGH THE GLM APPROACH

Motivations

3

Main question:

how effective are public policy programs with continuous treatment exposure?

Fundamental problem:

treated individuals are self-selected and not randomly.

Treatment is not randomly assigned

(possible) solution:

estimating a dose-response function

Page 4: ESTIMATING THE DOSE-RESPONSE FUNCTION THROUGH THE GLM APPROACH

Motivations

4

-500

00

50

00

10

00

015

00

020

00

0

E[y

ear6

(t)]

0 2 4 6 8 10Treatment level

Dose Response Low bound

Upper bound

Confidence Bounds at .95 % levelDose response function = Linear prediction

Dose Response Function

-200

00

-100

00

010

00

0

E[y

ear6

(t+

1)]

-E[y

ea

r6(t

)]

0 2 4 6 8 10Treatment level

Treatment Effect Low bound

Upper bound

Confidence Bounds at .95 % levelDose response function = Linear prediction

Treatment Effect Function

What is a dose-response function?

It is a relationship between treatment and an outcome variable e.g.: birth weight, employment, bank debt, etc

Page 5: ESTIMATING THE DOSE-RESPONSE FUNCTION THROUGH THE GLM APPROACH

5

Motivations

How can we estimate a dose-response function?

It can be estimated by using the Generalized Propensity Score (GPS)

Page 6: ESTIMATING THE DOSE-RESPONSE FUNCTION THROUGH THE GLM APPROACH

Literature references

1. Propensity Score for binary treatments:

Rosenbaum and Rubin (1983), (1984)

6

3. Generalized Propensity Score for continuous treatments:

Hirano and Imbens, 2004; Imai and Van Dyk (2004)

2. for categorical treatment variables:

Imbens (2000), Lechner (2001)

Page 7: ESTIMATING THE DOSE-RESPONSE FUNCTION THROUGH THE GLM APPROACH

Our contribution

7

Ad hoc programs have been provided to STATA users (Bia and Mattei, 2008), but …

… these programs contemplate only Normal distribution of the treatment variable

(gpscore.ado and doseresponse.ado)

We provide new programs to accommodate other distributions, not Normal.

(gpscore2.ado and doseresponse2.ado)

Page 8: ESTIMATING THE DOSE-RESPONSE FUNCTION THROUGH THE GLM APPROACH

The econometrics of the dose-response

8

{Yi(t)} set of potential outcomes for

Where is the set of potential treatments over [t0, t1]

Page 9: ESTIMATING THE DOSE-RESPONSE FUNCTION THROUGH THE GLM APPROACH

The econometrics of the dose-response

9

N individuals, i=1 … N

Xi vector of pre-treatment covariates;

Ti level of treatment delivered;

Yi (Ti) outcome corresponding to the treatment Ti

Let us suppose to have

Page 10: ESTIMATING THE DOSE-RESPONSE FUNCTION THROUGH THE GLM APPROACH

The econometrics of the dose-response

10

Hirano-Imbens define the GPS as the conditional density of the actual treatment given the covariates

)()( tYEt i

We want the average dose response function

)|( XTrR

Page 11: ESTIMATING THE DOSE-RESPONSE FUNCTION THROUGH THE GLM APPROACH

The econometrics of the dose-response

11

Within strata with the same r(t,x) the probability that T=t does not depend on X

),(|}{1 xtrtTX

Balancing property:

Page 12: ESTIMATING THE DOSE-RESPONSE FUNCTION THROUGH THE GLM APPROACH

The econometrics of the dose-response

12

This means that the GPS can be used to eliminate any bias associated with differences in the covariates and …

tXTtY |)(

If weak unconfoundedness holds we have

Page 13: ESTIMATING THE DOSE-RESPONSE FUNCTION THROUGH THE GLM APPROACH

13

rRtTYE

rXtrtYErt

,|

),(|)(),(

The dose-response function can be computed as:

The econometrics of the dose-response

),(,)( XtrtEt

Page 14: ESTIMATING THE DOSE-RESPONSE FUNCTION THROUGH THE GLM APPROACH

14

1. Regress Ti on Xi and

The dose-respone can be implemented in 3 steps:

FIRST STEP:

take the conditional distribution of the treatment giventhe covariates Ti| Xi

How to implement the GPS

Page 15: ESTIMATING THE DOSE-RESPONSE FUNCTION THROUGH THE GLM APPROACH

15

2i

' ,D ~ |)( XXTf ii

Where f(.) is a suitable transformation of T (link) D is a distribution of the exponential family

β parameters to be estimated

σ conditional SE of T|X

How to implement the GPS

Page 16: ESTIMATING THE DOSE-RESPONSE FUNCTION THROUGH THE GLM APPROACH

16

GPS

2' ˆ,ˆ,ˆ iii XTDR

1a. Test the balancing property

How to implement the GPS

Page 17: ESTIMATING THE DOSE-RESPONSE FUNCTION THROUGH THE GLM APPROACH

17

Model the conditional expectation of E[Yi| Ti, Ri ] as a function of Ti and Ri

SECOND STEP:

iiiiii

iii

RTRRTT

RTYErt

52

432

210

,|),(

How to implement the GPS

Page 18: ESTIMATING THE DOSE-RESPONSE FUNCTION THROUGH THE GLM APPROACH

18

Estimate the dose-response function by averaging the estimated conditionl expectation over the GPS at each level of the treatment we are interested in

THIRD STEP:

N

iiXtrtN

t ),(ˆ,ˆ1

)(

How to implement the GPS

Page 19: ESTIMATING THE DOSE-RESPONSE FUNCTION THROUGH THE GLM APPROACH

19

Where is the novelty?

in the FIRST STEP

Instead of a ML we use a GLM

exponential distribution (family)

combined with a link function

How to implement the GPS

Page 20: ESTIMATING THE DOSE-RESPONSE FUNCTION THROUGH THE GLM APPROACH

20

our programs

Link\Distr Normal Inv. Normal

Binomial Poisson Neg. Binomial

Gamma

Identity X X X X X X

Log X X X X X X

Logit X

Probit X

Cloglog X

Power X X X X X X

Opower X

Nbin X

Loglog X

Logc X

Page 21: ESTIMATING THE DOSE-RESPONSE FUNCTION THROUGH THE GLM APPROACH

We have written two programs:

doserepsonse2.ado;

estimates the dose-response function and graphs the result.

It carries out step 1 – 2 – 3 of the previous slides by running other 2 programs

21

our programs

Page 22: ESTIMATING THE DOSE-RESPONSE FUNCTION THROUGH THE GLM APPROACH

gpscore2.ado:

evaluates the gpscore under 6 different distributional assumptions

step 1 of the previous slides

22

doseresponse_model.ado:

Carries out step 2 of the previous slides

our programs

Page 23: ESTIMATING THE DOSE-RESPONSE FUNCTION THROUGH THE GLM APPROACH

doseresponse2 varlist , outcome(varname) t(varname) family(string) link(string) gpscore(newvarname) predict(newvarname) sigma(newvarname) cutpoints(varname) nq_gps(#) index(string) dose_response(newvarlist)

Optionst_transf(transformation) normal_test(test) normal_level(#) test_varlist(varlist) test(type) flag(#) cmd(regression_cmd) reg_type_t(string) reg_type_gps(string) interaction(#) t_points(vector) npoints(#) delta(#) bootstrap(string) filename(filename) boot_reps(#) analysis(string) analysis_leve(#) graph(filename) flag_b(#) opt_nb(string) opt_b(varname) detail

23

our programs

Page 24: ESTIMATING THE DOSE-RESPONSE FUNCTION THROUGH THE GLM APPROACH

gpscore2 varlist , t(varname) family(string) link(string) gpscore(newvarname) predict(newvarname) sigma(newvarname) cutpoints(varname) index(string) nq_gps(#)

Options

t_transf(transformation) normal_test(test) normal_level(#) test_varlist(varlist) test(type) flag_b(#) opt_nb(string) opt_b(varname) detail

24

our programs

Page 25: ESTIMATING THE DOSE-RESPONSE FUNCTION THROUGH THE GLM APPROACH

Application

25

Data set by Imbens, Rubin and Sacerdote (2001);

The winners of a lottery in Massachussets:amount of the prize (treatment) Ti

earnings 6 years after winning (outcome) Yi

age, gender, education, # of tickets bought, working status, earnings before winning up to 6 Xi

Page 26: ESTIMATING THE DOSE-RESPONSE FUNCTION THROUGH THE GLM APPROACH

Application: flogit

26

Fractional data: flogit model.

Treatment: prize/max(prize)

outcome: earnings after 6 year

family(binomial) link(logit)

Page 27: ESTIMATING THE DOSE-RESPONSE FUNCTION THROUGH THE GLM APPROACH

Application: flogit

27

-400

00

-200

00

020

00

0

E[y

ear6

(t)]

0 .2 .4 .6 .8Treatment level

Dose Response Low bound

Upper bound

Confidence Bounds at .95 % levelDose response function = Linear prediction

Dose Response Function

-100

00

-500

00

50

00

10

00

0

E[y

ear6

(t+

.1)]

-E[y

ear6

(t)]

0 .2 .4 .6 .8Treatment level

Treatment Effect Low bound

Upper bound

Confidence Bounds at .95 % levelDose response function = Linear prediction

Treatment Effect Function

Page 28: ESTIMATING THE DOSE-RESPONSE FUNCTION THROUGH THE GLM APPROACH

Application: count data

28

Count data: Poisson model.

Treatment: years of college+ high school

outcome: earnings after 6 year

family(poisson) link(log)

Page 29: ESTIMATING THE DOSE-RESPONSE FUNCTION THROUGH THE GLM APPROACH

Application: count data

29

-500

00

5000

1000

015

000

2000

0

E[y

ear

6(t)

]

0 2 4 6 8 10Treatment level

Dose Response Low bound

Upper bound

Confidence Bounds at .95 % levelDose response function = Linear prediction

Dose Response Function

-200

00-1

0000

010

000

E[y

ear

6(t+

1)]

-E[y

ear6

(t)]

0 2 4 6 8 10Treatment level

Treatment Effect Low bound

Upper bound

Confidence Bounds at .95 % levelDose response function = Linear prediction

Treatment Effect Function

Page 30: ESTIMATING THE DOSE-RESPONSE FUNCTION THROUGH THE GLM APPROACH

Application: gamma distribution

30

Gamma distribution:

Treatment: age

outcome: earnings after 6 year

family(gamma) link(log)

Page 31: ESTIMATING THE DOSE-RESPONSE FUNCTION THROUGH THE GLM APPROACH

Application: gamma distribution

31

-500

000

5000

010

0000

1500

00

E[y

ear

6(t)

]

0 20 40 60 80Treatment level

Dose Response Low bound

Upper bound

Confidence Bounds at .95 % levelDose response function = Linear prediction

Dose Response Function

-150

00-1

0000

-500

00

5000

E[y

ear

6(t+

1)]

-E[y

ear6

(t)]

0 20 40 60 80Treatment level

Treatment Effect Low bound

Upper bound

Confidence Bounds at .95 % levelDose response function = Linear prediction

Treatment Effect Function