Friday, September 6, 2013

IPTW Regression


An alternative to direct matching or matching on propensity scores involves the use of the inverse of propensity scores in a weighted regression framework (Horvitz and Thompson (1952), known as inverse probability of treatment weighted (IPTW) regression where:

 IPTW regression (with weights specified as above) specifically estimates the average treatment effect (ATE) (Astin, 2011):

ATE = E[Y1i-Y0i] 
Inverse probability of treatment weighting (IPTW) uses weights derived from the propensity scores  to create a pseudo population such that the distribution of covariates in the population are independent of treatment assignment.  (Astin,2011). This is an appeal to the CIA and Rosenbaum and Rubin’s propensity score theorem discussed before.  The weighting scheme essentially ‘weights up’ control units to look like treatment units (Stuart,2011). 



References

Austin, P.(2011). An Introduction to Propensity Score Methods for Reducing the Effects of Confounding in Observational Studies.  Multivariate Behav Research.May; 46(3): 399–424.

Horvitz D. G. & Thompson D. J.(1952) . A Generalization of Sampling Without Replacement From a Finite Universe. Journal of the American Statistical Association, Vol. 47, No. 260 (Dec., 1952), pp. 663- 685

Maciejewski, M. L. & Brookhart, M.A. (2011). Propensity score workshop . Retrieved January 19,2013. Website: http://ahrqplexnet.sharepointspace.com/Webinars/PS_webinar_followup.pdf

Stuart ,E.(2011).Propensity score methods for estimating causal effects: The why, when, and how . Johns Hopkins Bloomberg School of Public Health. Department of Mental Health. Department of      Biostatistics. Retrieved January 19,2013. Website:  www.biostat.jhsph.edu/estuart 

Thursday, September 5, 2013

Propensity Score Matching


See previous: http://econometricsense.blogspot.com/2013/05/selection-bias-and-rubin-causal-model.html
 
The problem of selection bias can be well characterized within the Rubin causal model or potential outcomes framework (Angrist and Pischke,2008; Rubin, 1974; Imbens and Wooldridge, 2009, Klaiber & Smith,2009). In a previous post I explained how selection bias can overpower the actual treatment effect and leave the naïve researcher to conclude that the intervention or treatment was ineffectual or lead them to under or overestimate the true treatment effects depending on the direction of the bias.

However, according to the conditional independence assumption (CIA) ( Rubin, 1973; Angrist & Pischke, 2008; Rosenbaum and Rubin, 1983;Angrist and Hahn,2004) conditional on covariate comparisons may remove selection bias, giving us the estimate of the treatment effect we need:

E[Yi|xi,di=1]- E[Yi|xi,di=0]= E[Y1i-Y0i|xi] or Y1i,Y0i⊥ di| xi    
The last term implies that treatment assignment ( di) and response (Y1i,Y0i)  are conditionally independent given covariates xi. This conclusion provides the justification and motivation for utilizing matched comparisons to estimate treatment  effects.  Matched comparisons imply balance on observed covariates, which ‘recreates’ a situation similar to a randomized experiment  where all subjects are essentially the same except for the treatment(Thoemmes and Kim,2011).  However, matching on covariates can be complicated and cumbersome. An alternative is to implement matching based on an estimate of the probability of receiving treatment or selection. This probability is referred to as a propensity score. Given estimates of the propensity or probability of receiving treatment, comparisons can then be made between observations matched on propensity scores.  This is in effect a two stage process requiring first a specification and estimation of a model used to derive the propensity scores, and then some implementation of matched comparisons made on the basis of the propensity scores.  Rosenbaum and Rubin’s propensity score theorem (1983) states that if the CIA holds, then matching or conditioning on propensity scores (denoted p(xi) ) will also eliminate selection bias, i.e. treatment assignment ( di) and response (Y1i,Y0i) are conditionally independent given propensity scores p(xi):
Y1i,Y0i ⊥di| xi     =  Y1i,Y0i ⊥ di|p(xi)  
In fact, propensity score matching can provide a more asymptotically efficient estimator of treatment effects than covariate matching (Angrist andHahn,2004).  
So the idea is to first generate propensity scores by specifying a model that predicts the probability of receiving treatment given covariates xi
p(xi)  = p(di=1|xi)
There are many possible functional forms for estimating propensity scores. Logit and probit models with the binary treatment indicator as the dependent variable are commonly used. Hirano et. al find that an efficient estimator can be achieved by weighting by a non-parametrically estimated propensity score (Hirano, et al, 2003). Millimet and Tchernis find evidence that more flexible and over specified estimators perform better in propensity score applications (Millimet and Tchernis , 2009). A comparative study of propensity score estimators using logistic regression, support vector machines, decision trees, and boosting algorithms can be found in Westreich et al (Westreich et al , 2009).
Once these probabilities, or ‘propensity scores’ are generated for each individual, matching is accomplished by identifying individuals in the control group with propensity scores similar to those in the treated group. Types of matching algorithms include 1:1 and nearest neighbor methods.  Differences between matched cases are calculated and then combined to estimate an average treatment effect.  Another method that implements matching based on propensity scores includes stratified comparisons. In this case treatment and control groups are stratified or divided into groups or categories  or bins of propensity scores. Then comparisons are made across strata and combined to estimate an average treatment effect. Matched comparisons based on propensity score strata  are discussed in Rosenbaum and Rubin (1984). This method can remove up to 90% of bias due to factors related to selection using as few as five strata (Rosenbaum and Rubin, 1984).
References:
 Angrist, J. D., &  Hahn, J. (2004). When to control for covariates? Panel-Asymptotic Results for  Estimates of Treatment Effects. Review of Economics and Statistics. 86, 58-72.

Angrist, J. D. &  Pischke J. (2008). Mostly harmless econometrics: An empiricist's companion. Princeton  University Press.

Hirano, K. & Imbens, G.W. &  Ridder, G. (2003). Efficient estimation of average treatment effects  using the estimated propensity score. Econometrica, Vol. 71, No. 4, 1161–1189.
  
Klaiber, H.A. & Smith,V.K. (2009). Evaluating Rubin's causal model for measuring the capitalization of  environmental amenities.  NBER Working Paper No 14957. National Bureau of Economic Research.

Imbens, G. W. & Wooldridge, J.M.(2009). Recent developments in the econometrics of program evaluation. Journal of Economic Literature, 47:1, 5–86

Millimet , D. L. & Tchernis, R.(2009). On the specification of propensity scores, with applications to the  analysis of trade policies. Journal of Business & Economic Statistics, Vol. 27, No. 3

Rosenbaum , R. &. Rubin, D.B.(1983). The central role of the propensity score in observational studies  for causal effects.  Biometrika, Vol. 70, No. 1, pp. 41-55

Rosenbaum , R. &. Rubin, D.B.(1984). Reducing Bias in Observational Studies Using Sub classification   on the Propensity Score.  Journal of the American Statistical Association, Vol. 79, Issue. 387,  pp.516-524

Rubin, D. B.(1974). Estimating causal effects of treatments in randomized and nonrandomized studies. Journal of Educational Psychology, Vol 66(5), Oct 1974, 688-701

Rubin, Donald B. (1973). Matching to remove bias in observational studies. Biometrics, 29, 159-83.

Thoemmes, F. J. & Kim, E. S. (2011). A systematic review of propensity score methods in the social  sciences. Multivariate Behavioral Research, 46(1), 90-118.

Westreich,  D. , Justin L., & Funk, M.J. (2010). Propensity score estimation: machine learning and classification methods as alternatives to logistic regression. Journal of  Clinical    Epidemiology,   63(8): 826–833.

Tuesday, September 3, 2013

GMM, Endogeneity, SNA, Viral Marketing, and Causal Inference



 In the article “Impact of social network structure on content propagation: A study using YouTube data” the authors investigate the relationship between socioemetric measures like degree centrality with diffusion of videos across a network.  In other words, they wanted to know if there was a causal relationship between network properties of those that share videos and the likelihood that a video would become viral.  What first interested me about this article was that it was a very good example of an application of social network analysis and viral seeding.  However, it also provides some very good examples of applications related to generalized method of moments,  instrumental variables, unobserved heterogeneity and endogeneity, and causal inference.  I previously was not aware of the GMM style of dynamic panel data models that instrument with lags, which is apparently quite popular in many econometric applications (see references below).

As the authors point out, any model that relates network properties to the outcome of video dissemination requires a careful estimation strategy if we are interested in making causal inferences. They identity several sources of endogeneity and unobserved heterogeneity.  If we are trying to infer dissemination based on one’s position in the network, we have to consider that other unobserved factors related to network position and video type could also impact dissemination.  It may be the case that all we are trying to do is predict video shares based on network position,  and perhaps that is OK as long as these correlations hold over time.

In contrast, if we want to make causal inferences, these types of endogeneity must be accounted for and also make econometric estimation difficult. In this case what we really want to estimate is the independent causal effect of network position on video shares, so we are interested only in the ‘quasi-experimental’ variation in network position.

A natural solution involves an instrumental variables approach, but the challenge of finding an ‘external’ instrument that is correlated with network and video properties of interest, but uncorrelated with unobserved effects is rather daunting. Ultimately the authors propose a generalized method of moments dynamic panel estimator using lagged variables as instruments.  

References:

 Anderson, T. W., & Hsaio, C. (1981). Estimation of dynamic models with error components. Journal of the American Statistical Association, 76(375), 598–606.

Arellano, M., & Bond, S. (1991). Some tests of specification for panel data: Monte Carlo evidence and an application to employment equations. The Review of Economic Studies, 58, 277–97.

DYNAMIC PANEL DATA MODELS:
A GUIDE TO MICRO DATA METHODS AND PRACTICE
Stephen Bond
THE INSTITUTE FOR FISCAL STUDIES
DEPARTMENT OF ECONOMICS, UCL
cemmap working paper CWP09/02

Impact of social network structure on content
propagation: A study using YouTube data
Quant Mark Econ (2012) 10:111–150
Hema Yoganarasimhan

Friday, August 9, 2013

Basic Elements of Method of Moments and Generalized Method of Moments Estimators


Consider a random variable f(x|θ1….θm) and a sample x1…xn
Define the kth raw population moment as: μk’ =E(xk)   which is some function of θ.This is referred to as the population moment condition and is often expressed as an ‘orthogonality’ condition:

μk’ - E(xk) = 0 or more compactly as E[Ψ (xi,θ)]  = 0

The sample analog of μk’ =mk’ = (1/n) Σ xik .

The MM estimator is derived by equating the sample moments to the population moments and solving for the parameters of interest.

This gives  us the sample analog to the orthogonality condition:

mk’ - μk’ = 0 or (1/n)Σ Ψ (xi’,θ) =0

Example: OLS

Let e = y-xb and Ψ (x,θ) = x(y-xb)

Our moment condition is then: E(xe) = 0 (which is one of the familiar assumptions of OLS)

The sample analog:

1/n Σ x(y-xb) = 0
X’(Y-Xb) = 0  (matrix representation)
X’Y-X’Xb = 0
b = (X’X)-1X’Y

Generalized Method of Moments

The sample analog to the moment condition (1/n)Σ Ψ (xi’,θ) often represents a system of ‘q’ equations and ‘p’ parameters. If q =p then we have an identified system and can derive the MM estimator. If q>p then the system is overidentified and the following quadratic form is specified:
min[(1/n)Σ Ψ (xi’,θ)]’W[(1/n)Σ Ψ (xi’,θ)] where the matrix W is a weigthing matrix.
GMM estimates are derived from the above  iteratively.  

References:
Jeff Thurk provides a very useful set of notes related to GMM on his website: https://webspace.utexas.edu/jmt597/www/teaching.htm
  
Econometric Analysis, William H. Greene . 1990.

Monday, July 15, 2013

Quasi-experimental Designs in Financial Aid Research

 The following are some very good articles related to regression discontinuity, difference-in- difference, and instrumental variable applications in assessing the impact of financial aid on student college enrollment decisions:

van der Klaauw (2002). Estimating the effect of financial aid offers on college enrollment: A regression-discontinuity approach. International Economic Review.  43(4), 1249–1287.

 “An important problem faced by colleges and universities, that of evaluating the effect of their financial aid offers on student enrollment decisions, is complicated by the likely endogeneity of the aid offer variable in a student enrollment equation. This article shows how discontinuities in an East Coast college’s aid assignment rule can be exploited to obtain credible estimates of the aid effect without having to rely on arbitrary exclusion restrictions and functional form assumptions. Semiparametric estimates based on a regression–discontinuity (RD) approach affirm the importance of financial aid as an effective instrument in competing with other colleges for students.”

 Stephanie Riegg Cellini. Causal Inference and Omitted Variable Bias in Financial Aid Research: Assessing Solutions The Review of Higher Education Spring 2008, Volume 31, No. 3, pp. 329–354

 Discusses the shortfall of multivariable regression estimates when used to estimate treatment effects in the face of omitted variable and selection bias in the case of analyzing treatment effects of financial aid offers on enrollment. Introduces quasi-experimental methods such as instrumental variables, difference in difference, and regression discontinuity approaches. This paper acknowledges that these methods are the new standard (over multivariable regression) in program evaluation in higher ed research and advocates the use of multiple methods to assess the robustness of results in the face of these challenges.

  Godman, J. Who merits financial aid?: Massachusetts' Adams Scholarship. Journal of Public Economics. Volume 92, Issues 10–11, October 2008, Pages 2121–2131

  This paper discusses the potential biases involved in simply comparing scholarship recipients to losers. Consistent with Cellini (2008) it uses multiple methods to addresses these issues including difference-in-difference and regression discontinuity estimates.  The DD estimates identify treatment effects by comparing variation across time between groups that would have received the scholarship in the past had it been implemented to winners in the present. The RD methods (similar to van der Klaauw (2002)) by contrast utilize a single contemporary cohort based on the identifying assumption that treatment assignment near the cutoff is as good as random, providing an estimate of an average treatment effect of scholarships.



Friday, July 12, 2013

Some informative statements regarding Regression Discontinuity designs


From:
Regression Discontinuity Designs in Economics
David S. Lee and Thomas Lemieux*Journal of Economic Literature 48 (June 2010): 281–355

RD as a weighted average treatment effect 

“In the presence of heterogeneous treatment effects, the discontinuity gap in an RD design can be interpreted as a weighted average treatment effect across all individuals"

RD  ‘as good as’ random assignment 

“the notion that the RD design generates local variation in treatment that is “as good as randomly assigned” is helpful because we can apply known results for randomized instruments to the RD design"


Fuzzy RD and ‘intent-to-treat’ analysis 

“ the fuzzy RD design can be described by the two equation system… estimating the treatment effect by instrumenting the treatment dummy…In this setting, (the estimate)can be interpreted as an “intent-to-treat” effect”