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) <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.
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-09-28 10:09:17 UTC; laurinemeier
Maintainer: Laurine Meier <laurine.meier@ensae.fr>
URL: https://github.com/LaurineMir/heterogeneouspeereffects
BugReports: https://github.com/LaurineMir/heterogeneouspeereffects/issues
Repository: CRAN
Date/Publication: 2026-10-08 10:20:14 UTC
