rd2dnet: Boundary Discontinuity Designs on Networks

Estimation and inference for boundary discontinuity designs on street networks. Extends the location-based framework of 'rd2d' (Cattaneo, Titiunik and Yu, <doi:10.48550/arXiv.2505.07989>) from Euclidean coordinates to network-native coordinates (signed network distance to the boundary and offset along it) and user-defined network metrics (edge costs, travel time, road-class transition penalties, precomputed matrices). Provides side-specific local polynomial estimates of boundary average treatment effect curves with robust bias-corrected inference (Calonico, Cattaneo and Titiunik, 2014, <doi:10.3982/ECTA11757>), uniform confidence bands, weighted and largest aggregate effects, fuzzy designs, covariates, derivative targets, heteroskedasticity-robust, cluster and network Conley (1999, <doi:10.1016/S0304-4076(98)00084-0>) standard errors, a port of the 'rd2d' direct plug-in bandwidth selector, and a network-normalised version of the local polynomial density test of Cattaneo, Jansson and Ma (2020, <doi:10.1080/01621459.2019.1635480>).

Version: 0.1.0
Depends: R (≥ 4.1.0)
Imports: graphics, grDevices, methods, Rcpp, stats, utils
LinkingTo: Rcpp
Suggests: dodgr, igraph, knitr, Matrix, osmdata, rmarkdown, sf, testthat (≥ 3.0.0)
Published: 2026-10-28
DOI: 10.32614/CRAN.package.rd2dnet (may not be active yet)
Author: Zach Winship [aut, cre, cph], Matias D. Cattaneo [ctb, cph] (author of rd2d and rddensity, from which the bandwidth selector and density test are ported), RocĂ­o Titiunik [ctb, cph] (author of rd2d, from which the bandwidth selector is ported), Ruiqi Rae Yu [ctb, cph] (author of rd2d, from which the bandwidth selector is ported), Michael Jansson [ctb, cph] (author of rddensity, from which the density test is ported), Xinwei Ma [ctb, cph] (author of rddensity, from which the density test is ported)
Maintainer: Zach Winship <zachtwinship at gmail.com>
BugReports: https://github.com/zwinship/rd2dnet/issues
License: GPL-3
URL: https://github.com/zwinship/rd2dnet
NeedsCompilation: yes
Citation: rd2dnet citation info
Materials: README, NEWS
CRAN checks: rd2dnet results

Documentation:

Reference manual: rd2dnet.html , rd2dnet.pdf
Vignettes: Boundary discontinuity designs on networks with rd2dnet (source, R code)

Downloads:

Package source: rd2dnet_0.1.0.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): rd2dnet_0.1.0.tgz, r-oldrel (arm64): rd2dnet_0.1.0.tgz, r-release (x86_64): rd2dnet_0.1.0.tgz, r-oldrel (x86_64): rd2dnet_0.1.0.tgz

Linking:

Please use the canonical form https://CRAN.R-project.org/package=rd2dnet to link to this page.