Package: bunching 0.8.6

bunching: Estimate Bunching

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.

Authors:Panos Mavrokonstantis [aut, cre]

bunching_0.8.6.tar.gz
bunching_0.8.6.zip(r-4.7-any)bunching_0.8.6.zip(r-4.6-any)bunching_0.8.6.zip(r-4.5-any)
bunching_0.8.6.tgz(r-4.6-any)bunching_0.8.6.tgz(r-4.5-any)
bunching_0.8.6.tar.gz(r-4.7-any)bunching_0.8.6.tar.gz(r-4.6-any)
bunching_0.8.6.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
bunching/json (API)

# Install 'bunching' in R:
install.packages('bunching', repos = c('https://mavpanos.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/mavpanos/bunching/issues

Datasets:

On CRAN:

Conda:

4.78 score 5 stars 12 scripts 342 downloads 12 exports 31 dependencies

Last updated from:cfba761ae8. Checks:7 NOTE, 2 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64NOTE182
source / vignettesOK245
linux-release-x86_64NOTE184
macos-release-arm64NOTE158
macos-oldrel-arm64NOTE163
windows-develNOTE91
windows-releaseNOTE107
windows-oldrelNOTE120
wasm-releaseOK125

Exports:bin_databunchitdo_bootstrapdo_correctiondomregionelasticityfit_bunchingmarginal_bunchernotch_equationplot_bunchingplot_histprep_data_for_fit

Dependencies:BBclicpp11dplyrfarvergenericsggplot2gluegtableisobandlabelinglifecyclemagrittrpillarpkgconfigpurrrquadprogR6RColorBrewerrlangS7scalesstringistringrtibbletidyrtidyselectutf8vctrsviridisLitewithr

Introduction to the bunching Package
Introduction | Overview of the bunching package | Main functions and parameter input options | How does bunchit() estimate the bunching mass? | The integration constraint correction | How are $z_L$ and $z_U$ set? | What does bunchit() return? | Examples | The package's example data | Exploring the data using plot_hist() | Kinks | Kink example 1: Sharp bunching | Kink example 2: Diffuse bunching | Kink example 3: Round number bunching | Kink example 4: Other bunching mass in bandwidth | Kink example 5: Changing some parameters | Notches | Notch example 1: Sharp bunching with hole | Notch example 2: Effect of integration constraint - shifting from $z^*$ Vs $z_U$ | Further optional parameter inputs in bunchit() related to plot's appearance | Editing plot options | Some final notes on plotting | References

Last update: 2022-08-16
Started: 2019-08-07

Optimization Theory Behind the bunching Package
Introduction | Theoretical foundations: Why would densities exhibit bunching? | The case of kinks | From bunching at kinks to elasticities | The case of notches | Frictions attenuating bunching | From bunching at notches to elasticities | Estimating $z_I$ | References

Last update: 2022-08-16
Started: 2019-08-07