netivreg: Estimation of Peer Effects in Endogenous Social Networks
Jun 5, 2025·,,,,·
0 min read
Pablo Estrada
Juan Estrada
Kim P. Huynh
David T. Jacho-Chávez
Leonardo Sánchez-Aragón

Abstract
The command netivreg implements the generalized three-stage least-squares estimator developed in Estrada (2022, Causal inference in multilayered networks, PhD thesis) and the generalized method of moments estimator in Chan et al. (2024, Journal of Econometric Methods 13, 205-224) for the endogenous linear-in-means model. The two procedures use full observability of a two-layered multiplex network data structure using Stata’s new multiframes capabilities and Python integration (version 16 and above). Applications of the command include simulated data and three years’ worth of data on peer-reviewed articles published in top general-interest journals in economics.
Type
Publication
Stata Journal