Pereda-Fernández, Santiago and Zacchia, Paolo Identification of Social Effects with Endogenous Networks and Covariates: Theory and Simulations. Working Paper (Submitted)