{
  "_id": "6a140ebfacfb0bcc41d3b104",
  "Package": "bunching",
  "Type": "Package",
  "Title": "Estimate Bunching",
  "Version": "0.8.6",
  "Authors@R": "person(\"Panos\", \"Mavrokonstantis\", email = \"mavpanos@gmail.com\",\nrole = c(\"aut\", \"cre\"))",
  "Description": "Implementation of the bunching estimator for kinks and\nnotches. Allows for flexible estimation of counterfactual (e.g.\ncontrolling for round number bunching, accounting for other\nbunching masses within bunching window, fixing bunching point\nto be minimum, maximum or median value in its bin, etc.). It\nproduces publication-ready plots in the style followed since\nChetty et al. (2011) <doi:10.1093/qje/qjr013>, with lots of\nfunctionality to set plot options.",
  "URL": "https://github.com/mavpanos/bunching",
  "BugReports": "https://github.com/mavpanos/bunching/issues",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "RoxygenNote": "7.2.1",
  "VignetteBuilder": "knitr, rmarkdown",
  "Config/pak/sysreqs": "libicu-dev",
  "Repository": "https://mavpanos.r-universe.dev",
  "Date/Publication": "2023-01-24 07:50:07 UTC",
  "RemoteUrl": "https://github.com/mavpanos/bunching",
  "RemoteRef": "HEAD",
  "RemoteSha": "cfba761ae86e9ce752cf7a806658bb9db2ca9149",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-25 08:53:04 UTC",
    "User": "root"
  },
  "Author": "Panos Mavrokonstantis [aut, cre]",
  "Maintainer": "Panos Mavrokonstantis <mavpanos@gmail.com>",
  "MD5sum": "72e01ca2c28c5e3d768c26bf0e3ba7d0",
  "_user": "mavpanos",
  "_type": "src",
  "_file": "bunching_0.8.6.tar.gz",
  "_fileid": "d1c19f15c4650f66f83fb16d5bd486751ed80d406258bb93227af80dc8d363ea",
  "_filesize": 1853291,
  "_sha256": "d1c19f15c4650f66f83fb16d5bd486751ed80d406258bb93227af80dc8d363ea",
  "_created": "2026-05-25T08:53:04.000Z",
  "_published": "2026-05-25T08:56:31.050Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77684353700,
      "time": 169,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "7195014467"
    },
    {
      "job": 77684353694,
      "time": 167,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7195013678"
    },
    {
      "job": 77684353709,
      "time": 173,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "7195006871"
    },
    {
      "job": 77684353711,
      "time": 162,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7195005738"
    },
    {
      "job": 77683850230,
      "time": 229,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7194969339"
    },
    {
      "job": 77684353696,
      "time": 118,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7195000825"
    },
    {
      "job": 77684353762,
      "time": 123,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "7195002574"
    },
    {
      "job": 77684353722,
      "time": 111,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "7194998826"
    },
    {
      "job": 77684353706,
      "time": 115,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7194999855"
    }
  ],
  "_buildurl": "https://github.com/r-universe/mavpanos/actions/runs/26392040445",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/mavpanos/bunching",
  "_commit": {
    "id": "cfba761ae86e9ce752cf7a806658bb9db2ca9149",
    "author": "Panos Mavrokonstantis <mavpanos@gmail.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Create draft-pdf.yml",
    "time": 1674546607
  },
  "_maintainer": {
    "name": "Panos Mavrokonstantis",
    "email": "mavpanos@gmail.com",
    "login": "mavpanos",
    "description": "Lead Data Scientist",
    "uuid": 19670140
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "BB",
      "version": ">= 2014.10-1",
      "role": "Depends"
    },
    {
      "package": "dplyr",
      "version": ">= 0.8.1",
      "role": "Depends"
    },
    {
      "package": "ggplot2",
      "version": ">= 3.1.1",
      "role": "Depends"
    },
    {
      "package": "R",
      "version": ">= 2.10",
      "role": "Depends"
    },
    {
      "package": "stats",
      "role": "Depends"
    },
    {
      "package": "tidyr",
      "version": ">= 0.8.2",
      "role": "Depends"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    }
  ],
  "_owner": "mavpanos",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 5,
  "_contributors": [
    {
      "user": "mavpanos",
      "count": 189,
      "uuid": 19670140
    },
    {
      "user": "panosm-grabtaxi",
      "count": 66,
      "uuid": 163085376
    }
  ],
  "_userbio": {
    "uuid": 19670140,
    "type": "user",
    "name": "Panos Mavrokonstantis",
    "description": "Lead Data Scientist"
  },
  "_downloads": {
    "count": 280,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/bunching"
  },
  "_devurl": "https://github.com/mavpanos/bunching",
  "_searchresults": 9,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/bunching.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/mavpanos/bunching",
  "_realowner": "mavpanos",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.8.4",
      "date": "2019-09-23"
    },
    {
      "version": "0.8.6",
      "date": "2022-08-24"
    }
  ],
  "_exports": [
    "bin_data",
    "bunchit",
    "do_bootstrap",
    "do_correction",
    "domregion",
    "elasticity",
    "fit_bunching",
    "marginal_buncher",
    "notch_equation",
    "plot_bunching",
    "plot_hist",
    "prep_data_for_fit"
  ],
  "_datasets": [
    {
      "name": "bunching_data",
      "title": "Simulated data for bunching examples.",
      "object": "bunching_data",
      "class": [
        "data.frame"
      ],
      "fields": [
        "kink_vector",
        "notch_vector"
      ],
      "rows": 27510,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "bin_data",
      "title": "Bin the raw data",
      "topics": [
        "bin_data"
      ]
    },
    {
      "page": "bunching",
      "title": "bunching: Analyze bunching at a kink or notch",
      "topics": [
        "bunching"
      ]
    },
    {
      "page": "bunching_data",
      "title": "Simulated data for bunching examples.",
      "topics": [
        "bunching_data"
      ]
    },
    {
      "page": "bunchit",
      "title": "Bunching Estimator",
      "topics": [
        "bunchit"
      ]
    },
    {
      "page": "do_bootstrap",
      "title": "Bootstrap",
      "topics": [
        "do_bootstrap"
      ]
    },
    {
      "page": "do_correction",
      "title": "Integration Constraint Correction",
      "topics": [
        "do_correction"
      ]
    },
    {
      "page": "domregion",
      "title": "Dominated Region",
      "topics": [
        "domregion"
      ]
    },
    {
      "page": "elasticity",
      "title": "Elasticity",
      "topics": [
        "elasticity"
      ]
    },
    {
      "page": "fit_bunching",
      "title": "Fit Bunching",
      "topics": [
        "fit_bunching"
      ]
    },
    {
      "page": "marginal_buncher",
      "title": "Marginal Buncher",
      "topics": [
        "marginal_buncher"
      ]
    },
    {
      "page": "notch_equation",
      "title": "Notch Equation",
      "topics": [
        "notch_equation"
      ]
    },
    {
      "page": "plot_bunching",
      "title": "Bunching Plot",
      "topics": [
        "plot_bunching"
      ]
    },
    {
      "page": "plot_hist",
      "title": "Plot Histogram",
      "topics": [
        "plot_hist"
      ]
    },
    {
      "page": "prep_data_for_fit",
      "title": "Data Preparation",
      "topics": [
        "prep_data_for_fit"
      ]
    }
  ],
  "_readme": "https://github.com/mavpanos/bunching/raw/HEAD/README.md",
  "_rundeps": [
    "BB",
    "cli",
    "cpp11",
    "dplyr",
    "farver",
    "generics",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lifecycle",
    "magrittr",
    "pillar",
    "pkgconfig",
    "purrr",
    "quadprog",
    "R6",
    "RColorBrewer",
    "rlang",
    "S7",
    "scales",
    "stringi",
    "stringr",
    "tibble",
    "tidyr",
    "tidyselect",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "bunching_examples.Rmd",
      "filename": "bunching_examples.pdf",
      "title": "Introduction to the bunching Package",
      "author": "Panos Mavrokonstantis",
      "engine": "knitr::rmarkdown",
      "headings": [
        "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"
      ],
      "created": "2019-08-07 22:21:12",
      "modified": "2022-08-16 18:16:09",
      "commits": 10
    },
    {
      "source": "bunching_theory.Rmd",
      "filename": "bunching_theory.pdf",
      "title": "Optimization Theory Behind the bunching Package",
      "author": "Panos Mavrokonstantis",
      "engine": "knitr::rmarkdown",
      "headings": [
        "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"
      ],
      "created": "2019-08-07 22:21:12",
      "modified": "2022-08-16 18:16:09",
      "commits": 16
    }
  ],
  "_score": 4.698970004336019,
  "_indexed": true,
  "_nocasepkg": "bunching",
  "_universes": [
    "mavpanos"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.8.6",
      "date": "2026-05-25T08:55:19.000Z",
      "distro": "noble",
      "commit": "cfba761ae86e9ce752cf7a806658bb9db2ca9149",
      "fileid": "a35dc2b31cd9c3bbd2281704611fdb0fc87859c7ebc4adc32782bfaf1e2b850e",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/mavpanos/actions/runs/26392040445"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.8.6",
      "date": "2026-05-25T08:55:04.000Z",
      "distro": "noble",
      "commit": "cfba761ae86e9ce752cf7a806658bb9db2ca9149",
      "fileid": "d5c41562d4e9a1bfdd980d04c32371903be7459e9e27ccceb4ba36521ef65934",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/mavpanos/actions/runs/26392040445"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.8.6",
      "date": "2026-05-25T08:55:09.000Z",
      "commit": "cfba761ae86e9ce752cf7a806658bb9db2ca9149",
      "fileid": "420cb82c4e78945950bf7e52c1b23a704c24bac2a2d12db04ec0cbdb95de909d",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/mavpanos/actions/runs/26392040445"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.8.6",
      "date": "2026-05-25T08:55:05.000Z",
      "commit": "cfba761ae86e9ce752cf7a806658bb9db2ca9149",
      "fileid": "72c8464336044edac1c70e15d70c8f733d510c35096cdd884333165ca419df1b",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/mavpanos/actions/runs/26392040445"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.8.6",
      "date": "2026-05-25T08:55:18.000Z",
      "commit": "cfba761ae86e9ce752cf7a806658bb9db2ca9149",
      "fileid": "73def78d33b29784c492a3b255825419ab2174b3d18cd6033098458aa7b4faa2",
      "status": "success",
      "buildurl": "https://github.com/r-universe/mavpanos/actions/runs/26392040445"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.8.6",
      "date": "2026-05-25T08:54:30.000Z",
      "commit": "cfba761ae86e9ce752cf7a806658bb9db2ca9149",
      "fileid": "36fd430a5ae12f9ec2598e1801f05a4e35a1ccf70e802ea5191fdc2f681c4bb2",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/mavpanos/actions/runs/26392040445"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.8.6",
      "date": "2026-05-25T08:54:15.000Z",
      "commit": "cfba761ae86e9ce752cf7a806658bb9db2ca9149",
      "fileid": "588db3535fdd8f9fd940f4d6f95f60503a55e81c1969a6110bb7a7f2b8f20432",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/mavpanos/actions/runs/26392040445"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.8.6",
      "date": "2026-05-25T08:54:16.000Z",
      "commit": "cfba761ae86e9ce752cf7a806658bb9db2ca9149",
      "fileid": "2273081fda1a35c089bb5dc2b1bc6713b4934913de60c0a9f1cc127bc02897d1",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/mavpanos/actions/runs/26392040445"
    }
  ]
}