Description
Implementation of the bunching estimator for kinks and notches. Allows for flexible estimation of counterfactual (e.g. controlling for round number bunching, accounting for other bunching masses within bunching window, fixing bunching point to be minimum, maximum or median value in its bin, etc.). It produces publication-ready plots in the style followed since Chetty et al. (2011) <doi:10.1093/qje/qjr013>, with lots of functionality to set plot options.
Downloads
390
Last 30 days
9708th
920
Last 90 days
3.4K
Last year
Trend: +28.3% (30d vs prior 30d)
CRAN Check Status
2
ERROR
12
OK
Show all 14 flavors
| Flavor | Status |
|---|---|
| r-devel-linux-x86_64-debian-clang | OK |
| r-devel-linux-x86_64-debian-gcc | OK |
| r-devel-linux-x86_64-fedora-clang | OK |
| r-devel-linux-x86_64-fedora-gcc | OK |
| r-devel-macos-arm64 | OK |
| r-devel-windows-x86_64 | OK |
| r-oldrel-macos-arm64 | ERROR |
| r-oldrel-macos-x86_64 | OK |
| r-oldrel-windows-x86_64 | OK |
| r-patched-linux-x86_64 | OK |
| r-release-linux-x86_64 | OK |
| r-release-macos-arm64 | ERROR |
| r-release-macos-x86_64 | OK |
| r-release-windows-x86_64 | OK |
Check details (2 non-OK)
ERROR
r-oldrel-macos-arm64
re-building of vignette outputs
Error(s) in re-building vignettes: --- re-building ‘bunching_examples.Rmd’ using rmarkdown ! kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+0/600 --dpi 600 bbm10 ! mkdir: ././opt/tex/texmf-var/fonts/pk/ljfour/public: Permission denied ! mktexpk: /opt/tex/texmf-dist/web2c/mktexdir /opt/tex/texmf-var/fonts/pk/ljfour/public/bbm failed. ! kpathsea: Appending font creation commands to missfont.log. Error: processing vignette 'bunching_examples.Rmd' failed with diagnostics: LaTeX failed to compile /Volumes/Builds/packages/big-sur-arm64/results/4.4/bunching.Rcheck/vign_test/bunching/vignettes/bunching_examples.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See bunching_examples.log for more info. --- failed re-building ‘bunching_examples.Rmd’ --- re-building ‘bunching_theory.Rmd’ using rmarkdown ! kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+0/600 --dpi 600 bbm10 ! mkdir: ././opt/tex/texmf-var/fonts/pk/ljfour/public: Permission denied ! mktexpk: /opt/tex/texmf-dist/web2c/mktexdir /opt/tex/texmf-var/fonts/pk/ljfour/public/bbm failed. ! kpathsea: Appending font creation commands to missfont.log. Error: processing vignette 'bunching_theory.Rmd' failed with diagnostics: LaTeX failed to compile /Volumes/Builds/packages/big-sur-arm64/results/4.4/bunching.Rcheck/vign_test/bunching/vignettes/bunching_theory.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See bunching_theory.log for more info. --- failed re-building ‘bunching_theory.Rmd’ SUMMARY: processing the following files failed: ‘bunching_examples.Rmd’ ‘bunching_theory.Rmd’ Error: Vignette re-building failed. Execution halted
ERROR
r-release-macos-arm64
re-building of vignette outputs
Error(s) in re-building vignettes: --- re-building ‘bunching_examples.Rmd’ using rmarkdown ! kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+0/600 --dpi 600 bbm10 ! mkdir: ././opt/tex/texmf-var/fonts/pk/ljfour/public: Permission denied ! mktexpk: /opt/tex/texmf-dist/web2c/mktexdir /opt/tex/texmf-var/fonts/pk/ljfour/public/bbm failed. ! kpathsea: Appending font creation commands to missfont.log. Error: processing vignette 'bunching_examples.Rmd' failed with diagnostics: LaTeX failed to compile /Volumes/Builds/packages/big-sur-arm64/results/4.5/bunching.Rcheck/vign_test/bunching/vignettes/bunching_examples.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See bunching_examples.log for more info. --- failed re-building ‘bunching_examples.Rmd’ --- re-building ‘bunching_theory.Rmd’ using rmarkdown ! kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+0/600 --dpi 600 bbm10 ! mkdir: ././opt/tex/texmf-var/fonts/pk/ljfour/public: Permission denied ! mktexpk: /opt/tex/texmf-dist/web2c/mktexdir /opt/tex/texmf-var/fonts/pk/ljfour/public/bbm failed. ! kpathsea: Appending font creation commands to missfont.log. Error: processing vignette 'bunching_theory.Rmd' failed with diagnostics: LaTeX failed to compile /Volumes/Builds/packages/big-sur-arm64/results/4.5/bunching.Rcheck/vign_test/bunching/vignettes/bunching_theory.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See bunching_theory.log for more info. --- failed re-building ‘bunching_theory.Rmd’ SUMMARY: processing the following files failed: ‘bunching_examples.Rmd’ ‘bunching_theory.Rmd’ Error: Vignette re-building failed. Execution halted
Check History
ERROR 12 OK · 0 NOTE · 0 WARNING · 2 ERROR · 0 FAILURE Mar 10, 2026
ERROR
r-release-macos-arm64
re-building of vignette outputs
Error(s) in re-building vignettes: --- re-building ‘bunching_examples.Rmd’ using rmarkdown ! kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+0/600 --dpi 600 bbm10 ! mkdir: ././opt/tex/texmf-var/fonts/pk/ljfour/public: Permission denied ! mk ...[truncated]... debugging tips. See bunching_theory.log for more info. --- failed re-building ‘bunching_theory.Rmd’ SUMMARY: processing the following files failed: ‘bunching_examples.Rmd’ ‘bunching_theory.Rmd’ Error: Vignette re-building failed. Execution halted
ERROR
r-oldrel-macos-arm64
re-building of vignette outputs
Error(s) in re-building vignettes: --- re-building ‘bunching_examples.Rmd’ using rmarkdown ! kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+0/600 --dpi 600 bbm10 ! mkdir: ././opt/tex/texmf-var/fonts/pk/ljfour/public: Permission denied ! mk ...[truncated]... debugging tips. See bunching_theory.log for more info. --- failed re-building ‘bunching_theory.Rmd’ SUMMARY: processing the following files failed: ‘bunching_examples.Rmd’ ‘bunching_theory.Rmd’ Error: Vignette re-building failed. Execution halted