heterogeneouspeereffects: Heterogeneous Peer Effect

Heterogeneous Peer Effect Package provides two-step Generalized Method of Moments (GMM) estimators for heterogeneous peer effects in group-level treatment models developed by Pasquier, Rossi and Wang (2026) <https://crest.science/wp-content/uploads/2026/09/2026-11.pdf>. The package separates the direct effect of treatment from within-group and between-group spillover effects, using a cross-fitted, semiparametric approach that leaves the propensity score unspecified and estimates it nonparametrically. Two identification settings are implemented: one in which eligibility for treatment coincides with group identity, and one in which identity is orthogonal to eligibility, allowing peer effects to differ across subgroups (e.g. by gender). Point estimates, standard errors, and test statistics are returned for the direct effect and for each within- and between-group peer effect.

Version: 0.1.0
Imports: dplyr, ggplot2, purrr, flextable, caret, MASS, mvtnorm
Suggests: rmarkdown, knitr, testthat (≥ 3.0.0)
Published: 2026-10-08
DOI: 10.32614/CRAN.package.heterogeneouspeereffects (may not be active yet)
Author: Felix Pasquier [aut], Laurine Meier [aut, cre], Pauline Rossi [aut]
Maintainer: Laurine Meier <laurine.meier at ensae.fr>
BugReports: https://github.com/LaurineMir/heterogeneouspeereffects/issues
License: MIT + file LICENSE
URL: https://github.com/LaurineMir/heterogeneouspeereffects
NeedsCompilation: no
Materials: README
CRAN checks: heterogeneouspeereffects results

Documentation:

Reference manual: heterogeneouspeereffects.html , heterogeneouspeereffects.pdf
Vignettes: Introduction to two_step_gmm in order to estimate heterogeneous peer effect (source, R code)
Introduction to ortho_heter_endo_gmm in order to estimate heterogeneous peer effects when identity is orthogonal to eligibility (source, R code)

Downloads:

Package source: heterogeneouspeereffects_0.1.0.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): not available, r-oldrel (arm64): not available, r-release (x86_64): not available, r-oldrel (x86_64): not available

Linking:

Please use the canonical form https://CRAN.R-project.org/package=heterogeneouspeereffects to link to this page.