Econometric methods for network data