Package: heterogeneouspeereffects 0.1.0

Laurine Meier

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.

Authors:Felix Pasquier [aut], Laurine Meier [aut, cre], Pauline Rossi [aut]

heterogeneouspeereffects_0.1.0.tar.gz
heterogeneouspeereffects_0.1.0.zip(r-4.7-any)heterogeneouspeereffects_0.1.0.zip(r-4.6-any)heterogeneouspeereffects_0.1.0.zip(r-4.5-any)
heterogeneouspeereffects_0.1.0.tgz(r-4.6-any)heterogeneouspeereffects_0.1.0.tgz(r-4.5-any)
heterogeneouspeereffects_0.1.0.tar.gz(r-4.7-any)heterogeneouspeereffects_0.1.0.tar.gz(r-4.6-any)
heterogeneouspeereffects_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION
card.svg |card.png
heterogeneouspeereffects/json (API)

# Install 'heterogeneouspeereffects' in R:
install.packages('heterogeneouspeereffects', repos = c('https://cranhaven.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/laurinemir/heterogeneouspeereffects/issues

On CRAN:

Conda:

archivedpackagesr-universe

3.70 score 5 stars 484 downloads 2 exports 108 dependencies

Last updated from:407b55f0ba (on package/heterogeneouspeereffects). Checks:9 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-develOK166
source / vignettesOK238
linux-releaseOK209
macos-releaseOK184
macos-oldrelOK164
windows-develOK121
windows-releaseOK122
windows-oldrelOK115
wasm-releaseOK142

Exports:heter_endo_gmmortho_heter_endo_gmm

Dependencies:askpassbase64encbslibcachemcaretclasscliclockcodetoolscpp11data.tablediagramdigestdplyre1071evaluatefarverfastmapflextablefontawesomefontBitstreamVerafontLiberationfontquiverforeachfsfuturefuture.applygdtoolsgenericsggplot2globalsgluegowergtablehardhathighrhtmltoolsipredisobanditeratorsjquerylibjsonliteKernSmoothknitrlabelinglatticelavalifecyclelistenvlubridatemagrittrMASSMatrixmemoisemimemvtnormnlmennetnumDerivofficeropensslparallellypillarpkgconfigplyrprodlimprogressrproxypurrrR6raggrappdirsRColorBrewerRcpprecipesreshape2rlangrmarkdownrpartS7sassscalesshapesparsevctrsSQUAREMstringistringrsurvivalsyssystemfontstextshapingtibbletidyrtidyselecttimechangetimeDatetinytextzdbutf8uuidvctrsviridisLitewithrxfunxml2yamlyardstickzip

Introduction to ortho_heter_endo_gmm in order to estimate heterogeneous peer effects when identity is orthogonal to eligibility
Heterogeneous Peer Effects | Assumptions | Data Requirements | Estimation Procedure | Usage Examples | Estimating delta, theta_within, and theta_between: | Outcomes

Last update: 2026-11-19
Started: 2026-11-19

Introduction to heter_endo_gmm in order to estimate heterogeneous peer effect when identity equals eligibility
Heterogeneous Peer Effects | Assumptions | Data Requirements | Estimation Procedure | Usage Examples | Estimating delta, theta_within, and theta_between with 5 parameters: | Estimating with a 3-parameter model: | Outcomes

Last update: 2026-11-19
Started: 2026-11-19