catviz: Visualizing Causal Assignment Trees for CSDiD and DR-DDD Designs

Tools for constructing, labeling, and visualizing Causal Assignment Trees (CATs) in settings with staggered adoption. Supports Callaway and Sant'Anna difference-in-differences (CSDiD) and doubly robust difference-in-difference-differences (DR-DDD) designs. The package helps clarify treatment timing, never-treated vs. not-yet-treated composition, and subgroup structure, and produces publication-quality diagrams and summary tables. Current functionality focuses on data-to-node mapping, node counts, cohort-year summaries, and high-quality tree plots suitable for empirical applications prior to estimation. Methods are based on Callaway and Sant'Anna (2021) <doi:10.1016/j.jeconom.2020.12.001>, Sant'Anna and Zhao (2020) <doi:10.1016/j.jeconom.2020.06.003>, and Kilanko (2026) <https://github.com/VictorKilanko/catviz>.

Version: 0.1.1
Depends: R (≥ 4.1.0)
Imports: dplyr, ggplot2, glue, tidyr, purrr, tibble, grid, rlang
Suggests: testthat (≥ 3.0.0)
Published: 2026-04-01
DOI: 10.32614/CRAN.package.catviz (may not be active yet)
Author: Victor Kilanko [aut, cre]
Maintainer: Victor Kilanko <victorkilanko at gmail.com>
BugReports: https://github.com/VictorKilanko/catviz/issues
License: MIT + file LICENSE
URL: https://github.com/VictorKilanko/catviz
NeedsCompilation: no
Materials: README, NEWS
CRAN checks: catviz results

Documentation:

Reference manual: catviz.html , catviz.pdf

Downloads:

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

Linking:

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