R Package iglm: Regression under Interference in Connected Populations
This package provides a scalable and theoretically grounded tool for researchers studying spillover effects in network data, filling a gap in existing software.
The paper introduces the R package iglm for regression analysis under interference in connected populations, offering scalability and provable theoretical guarantees. It demonstrates the package on two datasets, including hate speech on X and student communications.
We introduce R package iglm, which implements a comprehensive framework for studying relationships among predictors and outcomes under interference. The implemented regression framework facilitates the study of spillover and other phenomena in connected populations and has important advantages over existing packages, among them scalability and provable theoretical guarantees. On the computational side, the regression framework relies on scalable methods that can be applied to small and large data sets, by solving a convex optimization program based on pseudo-likelihoods using Minorization-Maximization and Quasi-Newton algorithms. On the statistical side, the regression framework comes with provable theoretical guarantees. To increase the versatility of iglm, users can add custom-built model terms. We showcase iglm using two data sets, including hate speech on the social media platform X and communications among students.