Learn R Programming

econet

The R package econet provides methods for estimating parameter-dependent network centrality measures with linear-in-means models. Both non linear least squares and maximum likelihood estimators are implemented. The methods allow for both link and node heterogeneity in network effects, endogenous network formation and the presence of unconnected nodes. The routines also compare the explanatory power of parameter-dependent network centrality measures with those of standard measures of network centrality. Benefits and features of the econet package are illustrated in the vignette of the package.

Implementing Econet

econet provides four functions. The first one is net_dep, which allows one to estimate a model of social interactions and compute the relative weighted Katz-Bonacich centralities of the agents. Different behavioral models can be chosen (see section 4 of the vignette for details). Moreover, the hypothesis of homogenous or heterogenous spillovers can be tested. The second function is boot, which is built to obtain valid inference when the NLLS estimator with Heckman correction is used. The third function is horse_race, which allows one to compare the explanatory power of parameter-dependent centralities relative to other centrality measures. The forth function is quantify, and it is used to assess the effect of control variables in the framework designed by BLP.

The package has at least four merits.

First, it complements the R packages implementing traditional centrality measures for binary networks, igraph and sna, and weighted networks, tnet, by introducing new eigensolutions-based techniques to rank agents' centrality. Second, whereas previous packages, such as btergm, hergm, the statnet suite, and xergm, created environments for modeling the statistical processes underlying network formation, econet provides the first framework to investigate the socio-economic processes operating on networks (i.e. peer effects). Third, it completes the collection of functions for modeling spatial dependence in cross-sectional data provided by spdep and splm, by allowing the users to: i) consider the presence of unconnected nodes, and ii) address network endogeneity. Finally, it equips the R archive with routines still unavailable in other commonly used software for the investigation of relational data, such as Matlab, Pajek, Python and Stata.

The examples we use to showcase the functionality of econet are contained in the vignette.

Copy Link

Version

Install

install.packages('econet')

Monthly Downloads

199

Version

1.0.0.1

License

MIT + file LICENSE

Maintainer

Valerio Leone Sciabolazza

Last Published

July 31st, 2024

Functions in econet (1.0.0.1)

quantify

quantify: quantification of marginal effects in linear-in-means models.
net_dep

Implement a number of modifications to the linear-in-means model to obtain different weighted versions of Katz-Bonacich centrality.
G_alumni_111

Column-normalized adjacency matrix representing the alumni network of the 111th U.S. Congress.
boot

boot: Bootstrap residuals with cross-sectional dependence
horse_race

Compare the explanatory power of parameter.dependent network centrality measures with those of standard measures of network centrality.
G_model_A_test

Column-normalized adjacency matrix representing a subsample of the alumni network of the 111th U.S. Congress.
G_cosponsor_111

Column-normalized adjacency matrix representing the cosponsorship network of the 111th U.S. Congress.
a_db_alumni

Dataset from Battaglini, Patacchini (2018)
db_alumni_test

Dataset from Battaglini, Patacchini (2018)
a_G_alumni_111

Column-normalized adjacency matrix representing the alumni network of the 111th U.S. Congress.
db_cosponsor

Dataset from Battaglini, Leone Sciabolazza, Patacchini (2018)