Package: catviz 0.1.1
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>.
Authors:
catviz_0.1.1.tar.gz
catviz_0.1.1.zip(r-4.7)catviz_0.1.1.zip(r-4.6)catviz_0.1.1.zip(r-4.5)
catviz_0.1.1.tgz(r-4.6-any)catviz_0.1.1.tgz(r-4.5-any)
catviz_0.1.1.tar.gz(r-4.7-any)catviz_0.1.1.tar.gz(r-4.6-any)
catviz_0.1.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
card.svg |card.png
catviz/json (API)
NEWS
| # Install 'catviz' in R: |
| install.packages('catviz', repos = c('https://victorkilanko.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/victorkilanko/catviz/issues
Last updated from:2d612d05d0. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 115 | ||
| source / vignettes | OK | 194 | ||
| linux-release-x86_64 | OK | 132 | ||
| macos-release-arm64 | OK | 118 | ||
| macos-oldrel-arm64 | OK | 154 | ||
| windows-devel | OK | 85 | ||
| windows-release | OK | 69 | ||
| windows-oldrel | OK | 80 | ||
| wasm-release | OK | 108 |
Exports:cat_att_equationcat_balance_plotcat_balance_tablecat_countscat_design_csdidcat_design_dddcat_design_didcat_diagcat_event_tablecat_labelcat_plot_csdidcat_plot_dddcat_plot_didcat_plot_treecat_pt_csdidcat_pt_drdddcat_save_pngcat_specgenerate_cohort_labels
Dependencies:clicpp11dplyrfarvergenericsggplot2gluegtableisobandlabelinglifecyclemagrittrpillarpkgconfigpurrrR6RColorBrewerrlangS7scalesstringistringrtibbletidyrtidyselectutf8vctrsviridisLitewithr
