{
  "_id": "6a1e883b1d7bb097a0a67ee1",
  "Package": "rddtools",
  "Version": "2.0.2",
  "Date": "2025-10-29",
  "Title": "Toolbox for Regression Discontinuity Design ('RDD')",
  "Description": "Set of functions for Regression Discontinuity Design\n('RDD'), for data visualisation, estimation and testing.",
  "Authors@R": "c(\nperson(\"Matthieu\", \"Stigler\", role = c(\"aut\", \"cre\"), comment=c(ORCID=\"0000-0002-6802-4290\"),\nemail=\"Matthieu.Stigler@gmail.com\"),\nperson(\"Bastiaan\", \"Quast\", email = \"bquast@gmail.com\", role=c(\"aut\"), comment=c(ORCID=\"0000-0002-2951-3577\") )\n)",
  "License": "GPL (>= 3)",
  "URL": "https://github.com/bquast/rddtools",
  "BugReports": "https://github.com/bquast/rddtools/issues",
  "VignetteBuilder": "knitr",
  "RoxygenNote": "7.3.3",
  "Encoding": "UTF-8",
  "Collate": "'as.npreg.R' 'bw_cct_estim.R' 'bw_cct_plot.R' 'bw_ik.R'\n'bw_rot.R' 'clusterInf.R' 'covarTests.R' 'dens_test.R'\n'gen_mc_ik.R' 'get_methods.R' 'model.matrix.rdd.R' 'placebo.R'\n'plotBin.R' 'plotSensi.R' 'qplot_experim.R' 'rdd_coef.R'\n'rdd_data.R' 'rdd_data_methods.R' 'rdd_pkg_old_kernelwts.R'\n'rdd_pkg_old_DCdensity.R' 'rdd_pred.R' 'rddtools.R' 'reg_gen.R'\n'reg_lm.R' 'reg_np.R' 'var_estim.R' 'various_code.R' 'waldci.R'",
  "Config/pak/sysreqs": "cmake make libicu-dev",
  "Repository": "https://bquast.r-universe.dev",
  "Date/Publication": "2025-10-29 10:04:11 UTC",
  "RemoteUrl": "https://github.com/bquast/rddtools",
  "RemoteRef": "HEAD",
  "RemoteSha": "61da6140ed6943d276421f186db6017eb38475c4",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-02 07:33:28 UTC",
    "User": "root"
  },
  "Author": "Matthieu Stigler [aut, cre] (ORCID:\n<https://orcid.org/0000-0002-6802-4290>),\nBastiaan Quast [aut] (ORCID: <https://orcid.org/0000-0002-2951-3577>)",
  "Maintainer": "Matthieu Stigler <Matthieu.Stigler@gmail.com>",
  "MD5sum": "307caf7e25819aa145ff8c221d4c62f4",
  "_user": "bquast",
  "_type": "src",
  "_file": "rddtools_2.0.2.tar.gz",
  "_fileid": "95a79a3f67dae25b0ac34bf762468500a718532b772c1a4c0a2cb919fcfe2fef",
  "_filesize": 736010,
  "_sha256": "95a79a3f67dae25b0ac34bf762468500a718532b772c1a4c0a2cb919fcfe2fef",
  "_created": "2026-06-02T07:33:28.000Z",
  "_published": "2026-06-02T07:37:31.798Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79021551901,
      "time": 199,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7351663702"
    },
    {
      "job": 79021551860,
      "time": 175,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7351656369"
    },
    {
      "job": 79021551948,
      "time": 148,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7351648132"
    },
    {
      "job": 79021551944,
      "time": 129,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7351642028"
    },
    {
      "job": 79020912030,
      "time": 247,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7351602343"
    },
    {
      "job": 79021551931,
      "time": 124,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7351640600"
    },
    {
      "job": 79021551884,
      "time": 138,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7351644957"
    },
    {
      "job": 79021551890,
      "time": 139,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7351645230"
    },
    {
      "job": 79021551917,
      "time": 140,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7351645533"
    }
  ],
  "_buildurl": "https://github.com/r-universe/bquast/actions/runs/26805197114",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/bquast/rddtools",
  "_commit": {
    "id": "61da6140ed6943d276421f186db6017eb38475c4",
    "author": "Matthieu Stigler <Matthieu.Stigler@gmail.com>",
    "committer": "Matthieu Stigler <Matthieu.Stigler@gmail.com>",
    "message": "NEW VERSION 2.0.2: increment version, NEWS, etc\n",
    "time": 1761732251
  },
  "_maintainer": {
    "name": "Matthieu Stigler",
    "email": "matthieu.stigler@gmail.com",
    "login": "matthieustigler",
    "orcid": "0000-0002-6802-4290",
    "description": "Environmental and development economist. \nWorks on satellite data, deforestation, crop insurance, using machine learning, R and GIS tools. ",
    "uuid": 108840
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "AER",
      "role": "Depends"
    },
    {
      "package": "np",
      "role": "Depends"
    },
    {
      "package": "KernSmooth",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "sandwich",
      "role": "Imports"
    },
    {
      "package": "lmtest",
      "role": "Imports"
    },
    {
      "package": "Formula",
      "role": "Imports"
    },
    {
      "package": "locpol",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "rdrobust",
      "role": "Imports"
    },
    {
      "package": "stats4",
      "role": "Suggests"
    },
    {
      "package": "car",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    }
  ],
  "_owner": "bquast",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-24",
      "n": 7
    },
    {
      "week": "2025-25",
      "n": 2
    },
    {
      "week": "2025-27",
      "n": 1
    },
    {
      "week": "2025-43",
      "n": 3
    },
    {
      "week": "2025-44",
      "n": 2
    }
  ],
  "_tags": [],
  "_stars": 11,
  "_contributors": [
    {
      "user": "bquast",
      "count": 265,
      "uuid": 2590349
    },
    {
      "user": "matthieustigler",
      "count": 258,
      "uuid": 108840
    },
    {
      "user": "ptesta",
      "count": 1,
      "uuid": 642912
    }
  ],
  "_userbio": {
    "uuid": 2590349,
    "type": "user",
    "name": "Bastiaan Quast",
    "description": "Machine Learning researcher | author of py, R packages: transformer, attention, rnn, HomomorphicEncryption, HEtools llama.go, mlx-profiler"
  },
  "_downloads": {
    "count": 561,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/rddtools"
  },
  "_devurl": "https://github.com/bquast/rddtools",
  "_searchresults": 193,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/rddtools.html",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/bquast/rddtools",
  "_realowner": "bquast",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.4.0",
      "date": "2015-07-27"
    },
    {
      "version": "1.2.0",
      "date": "2020-07-22"
    },
    {
      "version": "1.4.0",
      "date": "2020-08-07"
    },
    {
      "version": "1.5.0",
      "date": "2021-05-16"
    },
    {
      "version": "1.6.0",
      "date": "2022-01-10"
    },
    {
      "version": "2.0.1",
      "date": "2025-07-02"
    },
    {
      "version": "2.0.2",
      "date": "2025-10-29"
    }
  ],
  "_exports": [
    "as.lm",
    "as.npreg",
    "as.npregbw",
    "clusterInf",
    "computePlacebo",
    "covarTest_dis",
    "covarTest_mean",
    "dens_test",
    "gen_mc_ik",
    "plotPlacebo",
    "plotPlaceboDens",
    "plotSensi",
    "rdd_bw_cct_estim",
    "rdd_bw_cct_plot",
    "rdd_bw_ik",
    "rdd_bw_rsw",
    "rdd_coef",
    "rdd_data",
    "rdd_gen_reg",
    "rdd_pred",
    "rdd_reg_lm",
    "rdd_reg_np",
    "rot_bw",
    "vcovCluster",
    "vcovCluster2",
    "waldci"
  ],
  "_datasets": [
    {
      "name": "house",
      "title": "Dataset used in Lee (2008)",
      "object": "house",
      "file": "house.rda",
      "class": [
        "data.frame"
      ],
      "fields": [
        "x",
        "y"
      ],
      "rows": 6558,
      "table": true,
      "tojson": true
    },
    {
      "name": "indh",
      "title": "INDH data set",
      "object": "indh",
      "file": "indh.rda",
      "class": [
        "data.frame"
      ],
      "fields": [
        "choice_pg",
        "poverty"
      ],
      "rows": 720,
      "table": true,
      "tojson": true
    },
    {
      "name": "STAR_MHE",
      "title": "Transformation of the STAR dataset as used in Angrist and Pischke (2008)",
      "object": "STAR_MHE",
      "file": "STAR_MHE.rda",
      "class": [
        "data.frame"
      ],
      "fields": [
        "schidkn",
        "pscore",
        "classid",
        "cs",
        "female",
        "nwhite"
      ],
      "rows": 5743,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "rddtools-package",
      "title": "Regression Discontinuity Design",
      "topics": [
        "rddtools-package",
        "rddtools"
      ]
    },
    {
      "page": "as.lm",
      "title": "Convert a rdd object to lm",
      "topics": [
        "as.lm"
      ]
    },
    {
      "page": "as.npregbw",
      "title": "Convert an rdd_reg object to a 'npreg' object",
      "topics": [
        "as.npreg",
        "as.npregbw"
      ]
    },
    {
      "page": "clusterInf",
      "title": "Post-inference for clustered data",
      "topics": [
        "clusterInf"
      ]
    },
    {
      "page": "covarTest_dis",
      "title": "Testing for balanced covariates: equality of distribution",
      "topics": [
        "covarTest_dis",
        "covarTest_dis.rdd_data",
        "covarTest_dis.rdd_reg"
      ]
    },
    {
      "page": "covarTest_mean",
      "title": "Testing for balanced covariates: equality of means with t-test",
      "topics": [
        "covarTest_mean",
        "covarTest_mean.rdd_data",
        "covarTest_mean.rdd_reg"
      ]
    },
    {
      "page": "dens_test",
      "title": "McCrary Sorting Test",
      "topics": [
        "dens_test"
      ]
    },
    {
      "page": "gen_mc_ik",
      "title": "Generate Monte Carlo simulations of Imbens and Kalyanaraman",
      "topics": [
        "gen_mc_ik"
      ]
    },
    {
      "page": "house",
      "title": "Dataset used in Lee (2008)",
      "topics": [
        "house"
      ]
    },
    {
      "page": "indh",
      "title": "INDH data set",
      "topics": [
        "indh"
      ]
    },
    {
      "page": "plot.rdd_data",
      "title": "Plot rdd_data",
      "topics": [
        "plot.rdd_data"
      ]
    },
    {
      "page": "plotBin",
      "title": "Bin plotting",
      "topics": [
        "plotBin"
      ]
    },
    {
      "page": "plotPlacebo",
      "title": "Draw a (density) plot of placebo tests",
      "topics": [
        "computePlacebo",
        "plotPlacebo",
        "plotPlacebo.rdd_reg",
        "plotPlaceboDens",
        "plotPlaceboDens.rdd_reg"
      ]
    },
    {
      "page": "plotSensi",
      "title": "Plot the sensitivity to the bandwidth",
      "topics": [
        "plotSensi",
        "plotSensi.rdd_reg_lm",
        "plotSensi.rdd_reg_np"
      ]
    },
    {
      "page": "rdd_bw_cct_estim",
      "title": "Bandwidth selection for Regression Discontinuity estimators, CTT 2014",
      "topics": [
        "rdd_bw_cct_estim"
      ]
    },
    {
      "page": "rdd_bw_cct_plot",
      "title": "Bandwidth selection for Regression Discontinuity visualisation, CTT 2015",
      "topics": [
        "rdd_bw_cct_plot"
      ]
    },
    {
      "page": "rdd_bw_ik",
      "title": "Imbens-Kalyanaraman Optimal Bandwidth Calculation",
      "topics": [
        "rdd_bw_ik"
      ]
    },
    {
      "page": "rdd_bw_rsw",
      "title": "Global bandwidth selector of Ruppert, Sheather and Wand (1995) from package 'KernSmooth'",
      "topics": [
        "rdd_bw_rsw"
      ]
    },
    {
      "page": "rdd_coef",
      "title": "RDD coefficient",
      "topics": [
        "rdd_coef",
        "rdd_coef.default",
        "rdd_coef.rdd_reg_np"
      ]
    },
    {
      "page": "rdd_data",
      "title": "Construct rdd_data",
      "topics": [
        "rdd_data"
      ]
    },
    {
      "page": "rdd_gen_reg",
      "title": "General polynomial estimator of the regression discontinuity",
      "topics": [
        "rdd_gen_reg"
      ]
    },
    {
      "page": "rdd_pred",
      "title": "RDD coefficient prediction",
      "topics": [
        "rdd_pred"
      ]
    },
    {
      "page": "rdd_reg_lm",
      "title": "Parametric polynomial estimator of the regression discontinuity",
      "topics": [
        "rdd_reg_lm"
      ]
    },
    {
      "page": "rdd_reg_np",
      "title": "Parametric polynomial estimator of the regression discontinuity",
      "topics": [
        "rdd_reg_np"
      ]
    },
    {
      "page": "rot_bw",
      "title": "Bandwidth selector",
      "topics": [
        "rot_bw"
      ]
    },
    {
      "page": "STAR_MHE",
      "title": "Transformation of the STAR dataset as used in Angrist and Pischke (2008)",
      "topics": [
        "STAR_MHE"
      ]
    },
    {
      "page": "vcovCluster",
      "title": "Cluster Heteroskedasticity-consistent estimation of the covariance matrix.",
      "topics": [
        "vcovCluster",
        "vcovCluster2"
      ]
    },
    {
      "page": "waldci",
      "title": "Confint allowing vcov",
      "topics": [
        "waldci"
      ]
    }
  ],
  "_readme": "https://github.com/bquast/rddtools/raw/HEAD/README.md",
  "_rundeps": [
    "abind",
    "AER",
    "backports",
    "boot",
    "broom",
    "car",
    "carData",
    "cli",
    "colorspace",
    "cowplot",
    "cpp11",
    "cubature",
    "Deriv",
    "doBy",
    "dplyr",
    "farver",
    "forecast",
    "Formula",
    "fracdiff",
    "generics",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "KernSmooth",
    "labeling",
    "lattice",
    "lifecycle",
    "lme4",
    "lmtest",
    "locpol",
    "magrittr",
    "MASS",
    "Matrix",
    "MatrixModels",
    "mgcv",
    "microbenchmark",
    "minqa",
    "modelr",
    "nlme",
    "nloptr",
    "nnet",
    "np",
    "numDeriv",
    "pbkrtest",
    "pillar",
    "pkgconfig",
    "purrr",
    "quadprog",
    "quantreg",
    "R6",
    "rbibutils",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "RcppEigen",
    "Rdpack",
    "rdrobust",
    "reformulas",
    "rlang",
    "S7",
    "sandwich",
    "scales",
    "SparseM",
    "stringi",
    "stringr",
    "survival",
    "tibble",
    "tidyr",
    "tidyselect",
    "timeDate",
    "urca",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr",
    "zoo"
  ],
  "_vignettes": [
    {
      "source": "morocco.Rmd",
      "filename": "morocco.html",
      "title": "Morocco",
      "author": "Bastiaan Quast",
      "engine": "knitr::rmarkdown",
      "headings": [],
      "created": "2015-07-15 08:35:47",
      "modified": "2020-08-04 11:57:07",
      "commits": 6
    },
    {
      "source": "rddtools.Rmd",
      "filename": "rddtools.html",
      "title": "rddtools",
      "author": "Matthieu Stigler",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Data Preparation and Visualisation",
        "Parametric Estimation",
        "Non-parametric Estimation",
        "Regression Sensitivity tests:",
        "Design Sensitivity tests:",
        "Discontinuity comes from manipulation: McCrary test",
        "Discontinuity comes from covariates: covariates balance tests"
      ],
      "created": "2015-05-05 12:20:55",
      "modified": "2020-08-04 11:58:09",
      "commits": 13
    }
  ],
  "_score": 7.326949994165998,
  "_indexed": true,
  "_nocasepkg": "rddtools",
  "_universes": [
    "bquast",
    "matthieustigler"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2.0.2",
      "date": "2026-06-02T07:36:10.000Z",
      "distro": "noble",
      "commit": "61da6140ed6943d276421f186db6017eb38475c4",
      "fileid": "2289416a7cf869d891d96edc21f2ef38dcf2e6b43161a53b5af1c0c4c0cfc020",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bquast/actions/runs/26805197114"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "2.0.2",
      "date": "2026-06-02T07:35:52.000Z",
      "distro": "noble",
      "commit": "61da6140ed6943d276421f186db6017eb38475c4",
      "fileid": "d19baca4e216a5006c292826dea6303b5b47056978bdb038f65c5022763afa64",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bquast/actions/runs/26805197114"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "2.0.2",
      "date": "2026-06-02T07:35:41.000Z",
      "commit": "61da6140ed6943d276421f186db6017eb38475c4",
      "fileid": "64ed1d35838517d09a228343a4bab25175f2aa62dd7df4f565fb7ab0ada5d003",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bquast/actions/runs/26805197114"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "2.0.2",
      "date": "2026-06-02T07:35:20.000Z",
      "commit": "61da6140ed6943d276421f186db6017eb38475c4",
      "fileid": "1fd5e617f0f62596c5d2736ad350e0c6e28d3c020e60634043e0a8b393e4b19f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bquast/actions/runs/26805197114"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "2.0.2",
      "date": "2026-06-02T07:36:00.000Z",
      "commit": "61da6140ed6943d276421f186db6017eb38475c4",
      "fileid": "beb6b117942d0a7c80f171b5177a34ba0ebe7126a74f042d241959aa79ae894e",
      "status": "success",
      "buildurl": "https://github.com/r-universe/bquast/actions/runs/26805197114"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "2.0.2",
      "date": "2026-06-02T07:35:04.000Z",
      "commit": "61da6140ed6943d276421f186db6017eb38475c4",
      "fileid": "f43ec2c32c200ac7ca9ea2445aa78c04d0f625123090fec34b1c961016c963ca",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bquast/actions/runs/26805197114"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "2.0.2",
      "date": "2026-06-02T07:35:06.000Z",
      "commit": "61da6140ed6943d276421f186db6017eb38475c4",
      "fileid": "ec41e9d442ea5e8d88a877e0ab1f9aaf9d2408a64028e1176b20ae2b393f118a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bquast/actions/runs/26805197114"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "2.0.2",
      "date": "2026-06-02T07:35:03.000Z",
      "commit": "61da6140ed6943d276421f186db6017eb38475c4",
      "fileid": "a43668135e836343c9d33b084aa29dde523808f02bf541fb5a962885965b92ab",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bquast/actions/runs/26805197114"
    }
  ]
}