Some code (to use with caution, some parts have not been checked since several years and may contain mistakes):
R code (highly based on a discontinued R package, EASI) to estimate an EASI demand system with an add-hoc correction for censoring à la Shonkwiler & Yen, which I used in the fourth chapter of my PhD thesis: https://github.com/MathieuLambotte/EASI-Demand-System
A relatively clean version of R code that I used to estimate the linear (based on the code of Vincent Boucher and Yann Bramoullé's paper, Binary Outcomes and Linear Interactions) and non-linear (based on the seminal paper by Lee, Li and Lin in 2014, Binary Choice Models with Social Network under Heterogeneous Rational Expectation) generalized models of peer effects for binary outcomes in “Disentangling peer effects in transportation mode choice: the example of active commuting", Journal of Environmental Economics and Management, 2023: https://github.com/MathieuLambotte/Code-Peer-Effects
Replication package for "Peer Effects in Binary Outcomes: Strategic Complementarity and Taste for Conformity with Endogenous Networks": http://dx.doi.org/10.15456/jae.2025086.1303778166