The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

Introduction to ortho_heter_endo_gmm in order to estimate heterogeneous peer effects when identity is orthogonal to eligibility

library(heterogeneouspeereffects)

Heterogeneous Peer Effects

The package “Heterogeneous Peer Effects” aims to estimate individual responses within groups. Our contribution to the standard linear-in-means model is that we allow individuals to respond differently to the outcomes of their peers depending on both their identity and eligibility for treatment.

In the function ortho_heter_endo_gmm, we assume that identity and eligibility do not coincide, meaning that eligibility is orthogonal to identity. For instance, in the context of Progresa, we may assume that boys (resp. girls) are more influenced by the actions of their male (resp. female) peers than by their female (resp. male) peers. Gender, which is the relevant identity for social interactions, is orthogonal to being eligible for Progresa, since eligibility is only based on household income. Specifically, we distinguish between:

Here, we estimate four parameters: - theta_within for identity 1 (e.g., male) - theta_within for identity 2 (e.g., female) - theta_between from male to female - theta_between from female to male

We propose a simple methodology to identify and estimate the model using partial population experiments, where only a subset of individuals within a group is eligible for treatment, and the proportion of eligible individuals varies across groups. The estimation procedure relies on the Generalized Method of Moments (GMM).


Assumptions

Our method is based on the following key assumptions:

  1. Linear-in-Means Model with Panel Data
    • The outcome depends linearly on both the average outcome and the treatment status.
  2. Conditional Common Trends
    • In the absence of treatment, the average change in aggregate outcomes among eligible individuals in treated groups would have been the same as in control groups.
  3. Stable Share of Eligibles
    • The proportion of eligible individuals within a group remains constant over time.
  4. Randomized Experiment
    • Treatment is randomly assigned. In particular, groups receive the treatment independently of their share of eligible units for both identities and their share of identity (e.g., male) in the group.
  5. Common Support
    • For any observed share of males, eligible males, and eligible females in the reference population, there exist both treated and non-treated groups.

Data Requirements

To apply this methodology, the data must meet the following criteria:

The analysis is conducted at an aggregate level, considering average outcomes within each group.


Estimation Procedure

To estimate the model, the following variables are required:


Usage Examples

Estimating delta, theta_within, and theta_between:

test_nocov <- ortho_heter_endo_gmm(YM, YF, D, sM, sEM, sEF)

# View results
print(test_nocov)

Outcomes

This package return the estimated coefficients (and their p_values of ): - direct effect of treatment (delta) - intra group effect of treatment on male (theta_within_M) - intra group effect of treatment on female (theta_within_F) - inter group effect of treatment from male to female (theta_between_F_M) - inter group effect of treatment from female to male (theta_between_M_F)


This package provides a flexible and robust framework for estimating heterogeneous peer effects in grouped data, making it applicable to various empirical settings, such as education, labor markets, and social networks.

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.