EconPapers    
Economics at your fingertips  
 

Generalized 2SLS procedure for Stata

Nicolás Suárez Chavarría

2023 Stata Conference from Stata Users Group

Abstract: In this presentation, I implement code to run the generalized 2SLS procedure to estimate peer effects described in Bramoullé, Djebbari, and Fortin (2009). Identification of peer effects through social networks. Journal of econometrics, 150(1), 41-55. With this, we can estimate peer-effects models in Stata very easily; we just need to define an adjacency matrix in Mata, define our dependent variable and our exogenous variables, and then just run the regression. The program returns the standard display of a regression command with coefficients, standard errors, p-values, and so on for our endogenous and exogenous effects, and all these coefficients are also stored in e() to be used after with other postestimation commands. The program also allows us to row-normalize our adjacency matrix and to add group-level fixed effects.

Date: 2023-07-29
References: Add references at CitEc
Citations:

Downloads: (external link)
http://repec.org/usug2023/US23_Suarez_Chavarria.pdf

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:boc:usug23:05

Access Statistics for this paper

More papers in 2023 Stata Conference from Stata Users Group Contact information at EDIRC.
Bibliographic data for series maintained by Christopher F Baum ().

 
Page updated 2025-03-22
Handle: RePEc:boc:usug23:05