{"id":35190272,"url":"https://github.com/rdpackages/rddensity","last_synced_at":"2025-12-29T05:38:09.725Z","repository":{"id":47608250,"uuid":"285825456","full_name":"rdpackages/rddensity","owner":"rdpackages","description":"Manipulation testing using local polynomial density methods.","archived":false,"fork":false,"pushed_at":"2025-01-23T05:27:34.000Z","size":5175,"stargazers_count":13,"open_issues_count":0,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-27T14:55:24.296Z","etag":null,"topics":["causal-inference","program-evaluation","regression-discontinuity-designs","treatment-effects"],"latest_commit_sha":null,"homepage":"https://rdpackages.github.io/rddensity/","language":"Stata","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rdpackages.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-07T12:36:45.000Z","updated_at":"2025-10-17T06:48:53.000Z","dependencies_parsed_at":"2024-10-24T19:10:23.972Z","dependency_job_id":"c25780bc-3b74-46f1-bf50-c1748b820630","html_url":"https://github.com/rdpackages/rddensity","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/rdpackages/rddensity","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdpackages%2Frddensity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdpackages%2Frddensity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdpackages%2Frddensity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdpackages%2Frddensity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rdpackages","download_url":"https://codeload.github.com/rdpackages/rddensity/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdpackages%2Frddensity/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28111183,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-29T02:00:07.021Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["causal-inference","program-evaluation","regression-discontinuity-designs","treatment-effects"],"created_at":"2025-12-29T05:38:09.079Z","updated_at":"2025-12-29T05:38:09.719Z","avatar_url":"https://github.com/rdpackages.png","language":"Stata","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RDDENSITY\n\nThe [`rddensity`](https://rdpackages.github.io/rddensity/) package provides Stata and R implementations of manipulation tests employing local polynomial density estimation methods. This method is useful for falsification of Regression Discontinuity Designs, as well as for testing for self-selection or sorting in other contexts. This implementation provides hypothesis tests and bandwidth selectors for manipulation testing. \n\nThis work was supported in part by the National Science Foundation through grants [SES-1357561](https://www.nsf.gov/awardsearch/showAward?AWD_ID=1357561), [SES-1459931](https://www.nsf.gov/awardsearch/showAward?AWD_ID=1459931), [SES-1459967](https://www.nsf.gov/awardsearch/showAward?AWD_ID=1459967), [SES-1947662](https://www.nsf.gov/awardsearch/showAward?AWD_ID=1947662), [SES-1947805](https://www.nsf.gov/awardsearch/showAward?AWD_ID=1947805), and [SES-2019432](https://www.nsf.gov/awardsearch/showAward?AWD_ID=2019432).\n\n## Website\n\nhttps://rdpackages.github.io/rddensity\n\n## Queries and Requests\n\nPlease email: [rdpackages@googlegroups.com](mailto:rdpackages@googlegroups.com)\n\n## Major Upgrades\n\nThis package was first released in Spring 2017, and had one major upgrade in Summer 2020.\n\n- _Summer 2020 new features include_: (i) speed improvements; (ii) improved integration with [`lpdensity`](https://nppackages.github.io/lpdensity/); (iii) mass points in running variable adjustments; (iv) bandwidth selection adjustments for too few mass points in and/or overshooting of the support of the running variable; (v) density discontinuity plots with histogram and/or confidence bands; and (vi) binomial testing near cutoff as complementary discontinuity testing following results in [`rdlocrand`](https://rdpackages.github.io/rdlocrand/) methods (see references there for details).\n\n## Python Implementation\n\nTo install/update in Python type:\n```\npip install rddensity\n```\n- Help: [PyPI](https://pypi.org/project/rddensity/2.2.0/), [Documentation](Python/rddensity/docs/build/latex/rddensity.pdf)\n- Replication: [Python script](Python/rddensity_illustration.py)\n\n## R Implementation\n\nTo install/update in R type:\n```\ninstall.packages('rddensity')\n```\n\n- Help: [R Manual](https://cran.r-project.org/web/packages/rddensity/rddensity.pdf), [CRAN repository](https://cran.r-project.org/package=rddensity).\n\n- Replication: [R-script](R/rddensity_illustration.R), [rdplot illustration](R/rddensity_plot_illustration.R), [senate data](R/rddensity_senate.csv).\n\n## Stata Implementation\n\nTo install/update in Stata type:\n```\nnet install rddensity, from(https://raw.githubusercontent.com/rdpackages/rddensity/master/stata) replace\n```\n\n- Help: [rddensity](stata/rddensity.pdf), [rdbwdensity](stata/rdbwdensity.pdf).\n\n- Replication: [do-file](stata/rddensity_illustration.do), [do-file plot](stata/rddensity_plot_illustration.do), [data-senate](stata/rddensity_senate.dta).\n\n\n## References\n\nFor overviews and introductions, see [rdpackages website](https://rdpackages.github.io).\n\n### Software and Implementation\n\n- Cattaneo, Jansson and Ma (2018): [Manipulation Testing based on Density Discontinuity](https://rdpackages.github.io/references/Cattaneo-Jansson-Ma_2018_Stata.pdf).\u003cbr\u003e\n_Stata Journal_ 18(1): 234-261.\n\n- Cattaneo, Jansson and Ma (2022): [lpdensity: Local Polynomial Density Estimation and Inference](https://rdpackages.github.io/references/Cattaneo-Jansson-Ma_2022_JSS.pdf).\u003cbr\u003e\n_Journal of Statistical Software_ 101(2): 1-25.\n\n### Technical and Methodological\n\n- Cattaneo, Jansson and Ma (2020): [Simple Local Polynomial Density Estimators](https://rdpackages.github.io/references/Cattaneo-Jansson-Ma_2020_JASA.pdf).\u003cbr\u003e\n_Journal of the American Statistical Association_ 115(531): 1449-1455.\u003cbr\u003e\n[Supplemental appendix](https://rdpackages.github.io/references/Cattaneo-Jansson-Ma_2020_JASA--Supplement.pdf).\n\n- Cattaneo, Jansson and Ma (2022): [Local Regression Distribution Estimators](https://rdpackages.github.io/references/Cattaneo-Jansson-Ma_2022_JoE.pdf).\u003cbr\u003e\n_Journal of Econometrics_, forthcoming.\u003cbr\u003e\n[Supplemental appendix](https://rdpackages.github.io/references/Cattaneo-Jansson-Ma_2022_JoE--Supplement.pdf).\n\n\u003cbr\u003e\u003cbr\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frdpackages%2Frddensity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frdpackages%2Frddensity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frdpackages%2Frddensity/lists"}