Package: heterogeneouspeereffects Title: Heterogeneous Peer Effect Version: 0.1.0 Authors@R: c( person("Felix", "Pasquier", , "felix.pasquier@ensae.fr", role = "aut"), person("Laurine", "Meier", , "laurine.meier@ensae.fr", role = c("aut", "cre")), person("Pauline", "Rossi", , "pauline.rossi@ensae.fr", role = "aut") ) Description: 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) . 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. License: MIT + file LICENSE Encoding: UTF-8 Imports: dplyr, ggplot2, purrr, flextable, caret, MASS, mvtnorm Suggests: rmarkdown, knitr, testthat (>= 3.0.0) Config/testthat/edition: 3 Author: Felix Pasquier [aut], Laurine Meier [aut, cre], Pauline Rossi [aut] RoxygenNote: 7.3.2 VignetteBuilder: knitr NeedsCompilation: no Packaged: 2026-10-08 11:47:25 UTC; root Maintainer: Laurine Meier URL: https://github.com/LaurineMir/heterogeneouspeereffects BugReports: https://github.com/LaurineMir/heterogeneouspeereffects/issues Config/pak/sysreqs: libcairo2-dev cmake libfontconfig1-dev libfreetype6-dev libfribidi-dev make libharfbuzz-dev libicu-dev libjpeg-dev libpng-dev libtiff-dev libuv1-dev libwebp-dev libxml2-dev libssl-dev Repository: https://laurinemir.r-universe.dev Date/Publication: 2026-09-28 10:08:37 UTC RemoteUrl: https://github.com/laurinemir/heterogeneouspeereffects RemoteRef: HEAD RemoteSha: 189f88c6924506639ac496a02958d8734f350740