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://laurinemir.r-universe.dev', 'https://cloud.r-project.org'))

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

On CRAN:

Conda:

4.60 score 2 exports 109 dependencies

Last updated from:189f88c692. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK134
source / vignettesOK241
linux-releaseOK142
macos-releaseOK253
macos-oldrelOK219
windows-develOK94
windows-releaseOK101
windows-oldrelOK143
wasm-releaseOK134

Exports:heter_endo_gmmortho_heter_endo_gmm

Dependencies:askpassbase64encbslibcachemcaretclasscliclockcodetoolscpp11data.tablediagramdigestdplyre1071evaluatefarverfastmapflextablefontawesomefontBitstreamVerafontLiberationfontquiverforeachfsfuturefuture.applygdtoolsgenericsggplot2globalsgluegowergtablehardhathighrhtmltoolsipredisobanditeratorsjquerylibjsonliteKernSmoothknitrlabelinglatticelavalifecyclelistenvlubridatemagrittrMASSMatrixmemoisemimeModelMetricsmvtnormnlmennetnumDerivofficeropensslparallellypillarpkgconfigplyrpROCprodlimprogressrproxypurrrR6raggrappdirsRColorBrewerRcpprecipesreshape2rlangrmarkdownrpartS7sassscalesshapesparsevctrsSQUAREMstringistringrsurvivalsyssystemfontstextshapingtibbletidyrtidyselecttimechangetimeDatetinytextzdbutf8uuidvctrsviridisLitewithrxfunxml2yamlzip

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-08-28
Started: 2026-08-28

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-08-28
Started: 2026-08-28