{
  "_id": "6ad1caaba6a61792ed76b782",
  "Package": "drape",
  "Title": "Doubly Robust Average Partial Effects",
  "Version": "0.0.2",
  "Authors@R": "c(\nperson(\"Harvey\", \"Klyne\", role = c(\"aut\", \"cre\", \"cph\"), email = \"hck33@cantab.ac.uk\"))",
  "Description": "Doubly robust average partial effect estimation. This\nimplementation contains methods for adding additional\nsmoothness to plug-in regression procedures and for estimating\nscore functions using smoothing splines. Details of the method\ncan be found in Harvey Klyne and Rajen D. Shah (2023)\n<doi:10.48550/arXiv.2308.09207>.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "BugReports": "https://github.com/harveyklyne/drape/issues",
  "VignetteBuilder": "knitr",
  "Config/testthat/edition": "3",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.1.2",
  "Repository": "https://harveyklyne.r-universe.dev",
  "Date/Publication": "2026-03-20 03:51:40 UTC",
  "RemoteUrl": "https://github.com/harveyklyne/drape",
  "RemoteRef": "HEAD",
  "RemoteSha": "659d33414bee8914cbff299cc1ec4dcadc158660",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-16 06:36:29 UTC",
    "User": "root"
  },
  "Author": "Harvey Klyne [aut, cre, cph]",
  "Maintainer": "Harvey Klyne <hck33@cantab.ac.uk>",
  "_user": "harveyklyne",
  "_type": "src",
  "_file": "drape_0.0.2.tar.gz",
  "_fileid": "https://r2.ropensci.org/380eb35ea2c6407689dfb13cdc658b6b5161b55d92c11f6740b6389f20e55cbc",
  "_filesize": 192376,
  "_sha256": "380eb35ea2c6407689dfb13cdc658b6b5161b55d92c11f6740b6389f20e55cbc",
  "_expires": "2027-01-24T06:56:41.000Z",
  "_created": "2026-10-16T06:36:29.000Z",
  "_published": "2026-10-16T06:56:43.526Z",
  "_buildurl": "https://github.com/r-universe/harveyklyne/actions/runs/38861896941",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 116846795426,
      "time": 132,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12029761129"
    },
    {
      "job": 116846795355,
      "time": 124,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12030445006"
    },
    {
      "job": 116846795420,
      "time": 234,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12029738278"
    },
    {
      "job": 116846795477,
      "time": 169,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12030212619"
    },
    {
      "job": 116845928629,
      "time": 168,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12029249628"
    },
    {
      "job": 116846795468,
      "time": 93,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12029875940"
    },
    {
      "job": 116846795527,
      "time": 99,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12029607233"
    },
    {
      "job": 116846795522,
      "time": 99,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12030420173"
    },
    {
      "job": 116846795558,
      "time": 99,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12029901663"
    }
  ],
  "_upstream": "https://github.com/harveyklyne/drape",
  "_commit": {
    "id": "659d33414bee8914cbff299cc1ec4dcadc158660",
    "author": "harveyklyne <67394846+harveyklyne@users.noreply.github.com>",
    "committer": "harveyklyne <67394846+harveyklyne@users.noreply.github.com>",
    "message": "Updated paper reference\n",
    "time": 1773978700
  },
  "_maintainer": {
    "name": "Harvey Klyne",
    "email": "hck33@cantab.ac.uk",
    "login": "harveyklyne",
    "description": "",
    "uuid": 67394846
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "DoubleML",
      "role": "Suggests"
    },
    {
      "package": "glmnet",
      "role": "Suggests"
    },
    {
      "package": "graphics",
      "role": "Suggests"
    },
    {
      "package": "hdi",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "Matrix",
      "role": "Suggests"
    },
    {
      "package": "mlr3",
      "role": "Suggests"
    },
    {
      "package": "paradox",
      "role": "Suggests"
    },
    {
      "package": "partykit",
      "role": "Suggests"
    },
    {
      "package": "rjson",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "tibble",
      "role": "Suggests"
    },
    {
      "package": "xgboost",
      "role": "Suggests"
    }
  ],
  "_owner": "harveyklyne",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-12",
      "n": 1
    }
  ],
  "_tags": [],
  "_stars": 5,
  "_contributors": [
    {
      "user": "harveyklyne",
      "count": 7,
      "uuid": 67394846
    }
  ],
  "_userbio": {
    "uuid": 67394846,
    "type": "user",
    "name": "Harvey Klyne",
    "followers": 0
  },
  "_downloads": {
    "count": 297,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/drape"
  },
  "_devurl": "https://github.com/harveyklyne/drape",
  "_searchresults": 5,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/drape.html",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE"
  ],
  "_homeurl": "https://github.com/harveyklyne/drape",
  "_realowner": "harveyklyne",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.0.1",
      "date": "2023-09-18"
    },
    {
      "version": "0.0.2",
      "date": "2024-11-28"
    }
  ],
  "_exports": [
    "basis_poly",
    "cv_resmooth",
    "cv_spline_score",
    "drape",
    "ng_pseudo_response",
    "resmooth",
    "simulate_data",
    "spline_score"
  ],
  "_help": [
    {
      "page": "basis_poly",
      "title": "Estimate the score function of the d'th covariate using a polynomial basis.",
      "topics": [
        "basis_poly"
      ]
    },
    {
      "page": "compare",
      "title": "Generate simulation data and evaluate estimators, with sample splitting.",
      "topics": [
        "compare"
      ]
    },
    {
      "page": "compare_evaluate",
      "title": "Evaluate estimators by training nuisance functions on training set and evaluating them on test set.",
      "topics": [
        "compare_evaluate"
      ]
    },
    {
      "page": "compare_lm",
      "title": "Generate simulation data and evaluate OLS estimator.",
      "topics": [
        "compare_lm"
      ]
    },
    {
      "page": "compare_partially_linear",
      "title": "Generate simulation data and evaluate partially linear estimator.",
      "topics": [
        "compare_partially_linear"
      ]
    },
    {
      "page": "compare_rothenhausler",
      "title": "Generate simulation data and evaluate Rothenhausler estimator.",
      "topics": [
        "compare_rothenhausler"
      ]
    },
    {
      "page": "cv_resmooth",
      "title": "K-fold cross-validation for resmoothing bandwidth.",
      "topics": [
        "cv_resmooth"
      ]
    },
    {
      "page": "cv_spline_score",
      "title": "K-fold cross-validation for spline_score.",
      "topics": [
        "cv_spline_score"
      ]
    },
    {
      "page": "drape",
      "title": "Estimate the doubly-robust average partial effect estimate of X on Y, in the presence of Z.",
      "topics": [
        "drape"
      ]
    },
    {
      "page": "fit_lasso_poly",
      "title": "Fit a lasso regression using quadratic polynomial basis, with interactions.",
      "topics": [
        "fit_lasso_poly"
      ]
    },
    {
      "page": "fit_xgboost",
      "title": "Fit pre-tuned XGBoost regression for use in simulations.",
      "topics": [
        "fit_xgboost"
      ]
    },
    {
      "page": "MC_sums",
      "title": "Compute sums of a Monte Carlo vector for use in resmoothing.",
      "topics": [
        "MC_sums"
      ]
    },
    {
      "page": "mixture_score",
      "title": "Population score function for the symmetric mixture two Gaussian random variables.",
      "topics": [
        "mixture_score"
      ]
    },
    {
      "page": "new_X",
      "title": "Generate a matrix of covariates for use in resmoothing, in which the d'th column of X is translated successively by the Kronecker product of bw and MC_variates.",
      "topics": [
        "new_X"
      ]
    },
    {
      "page": "ng_pseudo_response",
      "title": "Generate pseudo responses as in Ng 1994 to enable univariate score estimation by standard smoothing spline regression.",
      "topics": [
        "ng_pseudo_response"
      ]
    },
    {
      "page": "partially_linear",
      "title": "Fit a doubly-robust partially linear regression using the DoubleML package and pre-tuned XGBoost regressions, for use in simulations.",
      "topics": [
        "partially_linear"
      ]
    },
    {
      "page": "resmooth",
      "title": "Resmooth the predictions of a fitted model",
      "topics": [
        "resmooth"
      ]
    },
    {
      "page": "rmixture",
      "title": "Symmetric mixture two Gaussian random variables.",
      "topics": [
        "rmixture"
      ]
    },
    {
      "page": "rothenhausler_basis",
      "title": "Generate the modified quadratic basis of Rothenhausler and Yu.",
      "topics": [
        "rothenhausler_basis"
      ]
    },
    {
      "page": "rothenhausler_yu",
      "title": "Estimate the average partial effect of using the debiased lasso method of Rothenhausler and Yu, using pre-tuned lasso penalties, for use in simulations.",
      "topics": [
        "rothenhausler_yu"
      ]
    },
    {
      "page": "simulate_data",
      "title": "Generate simulation data.",
      "topics": [
        "simulate_data"
      ]
    },
    {
      "page": "sort_bin",
      "title": "Sort and bin x within a specified tolerance, using hist().",
      "topics": [
        "sort_bin"
      ]
    },
    {
      "page": "spline_score",
      "title": "Univariate score estimation via the smoothing spline method of Cox 1985 and Ng 1994.",
      "topics": [
        "spline_score"
      ]
    },
    {
      "page": "z_correlated_normal",
      "title": "Generate n copies of Z ~ N_{p}(0,Sigma), where Sigma_{jj} = 1, Sigma_{jk} = \\text{corr} for all j not equal to k.",
      "topics": [
        "z_correlated_normal"
      ]
    }
  ],
  "_readme": "https://github.com/harveyklyne/drape/raw/HEAD/README.md",
  "_rundeps": [],
  "_vignettes": [
    {
      "source": "drape.Rmd",
      "filename": "drape.html",
      "title": "drape",
      "engine": "knitr::rmarkdown",
      "headings": [],
      "created": "2023-08-19 15:42:17",
      "modified": "2023-08-19 15:42:17",
      "commits": 1
    }
  ],
  "_score": 4.3979400086720375,
  "_indexed": true,
  "_nocasepkg": "drape",
  "_universes": [
    "harveyklyne"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.0.2",
      "date": "2026-10-16T06:38:32.000Z",
      "distro": "resolute",
      "commit": "659d33414bee8914cbff299cc1ec4dcadc158660",
      "fileid": "https://r2.ropensci.org/0be78591028ef31a91da40c2c6e7e556896430ac1f65479504fa39d70add6c4f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/harveyklyne/actions/runs/38861896941"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.0.2",
      "date": "2026-10-16T06:38:27.000Z",
      "distro": "resolute",
      "commit": "659d33414bee8914cbff299cc1ec4dcadc158660",
      "fileid": "https://r2.ropensci.org/c563696ac2e4d20e4c5064d2bc0567d45a236158e1742bf88bfc28ed9562f420",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/harveyklyne/actions/runs/38861896941"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.0.2",
      "date": "2026-10-16T06:53:52.000Z",
      "commit": "659d33414bee8914cbff299cc1ec4dcadc158660",
      "fileid": "https://r2.ropensci.org/5b52242c8c37c13f98d0f248edb3eaff001c5d14e8922eb4e6fe6d793c2bd3e2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/harveyklyne/actions/runs/38861896941"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.0.2",
      "date": "2026-10-16T06:55:31.000Z",
      "commit": "659d33414bee8914cbff299cc1ec4dcadc158660",
      "fileid": "https://r2.ropensci.org/96fb778d6ca8937d6d21763e1f786970bcc37dfc85a3ff20d9182d8c188f3557",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/harveyklyne/actions/runs/38861896941"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.0.2",
      "date": "2026-10-16T06:38:18.000Z",
      "commit": "659d33414bee8914cbff299cc1ec4dcadc158660",
      "fileid": "https://r2.ropensci.org/2dc85a281dabb4f7892980c8274e94fe74a08b3b3760c699131ed13687e17d6c",
      "status": "success",
      "buildurl": "https://github.com/r-universe/harveyklyne/actions/runs/38861896941"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.0.2",
      "date": "2026-10-16T06:37:49.000Z",
      "commit": "659d33414bee8914cbff299cc1ec4dcadc158660",
      "fileid": "https://r2.ropensci.org/2ab2d41eaaf736a7e4663eee9c53fea751134860e4779b676e1dfec2b06cf692",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/harveyklyne/actions/runs/38861896941"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.0.2",
      "date": "2026-10-16T06:37:54.000Z",
      "commit": "659d33414bee8914cbff299cc1ec4dcadc158660",
      "fileid": "https://r2.ropensci.org/5ea5f8819274fafa23a08a04ba88b375d5db497886092d91af231f21eb1fbeb9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/harveyklyne/actions/runs/38861896941"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.0.2",
      "date": "2026-10-16T06:37:56.000Z",
      "commit": "659d33414bee8914cbff299cc1ec4dcadc158660",
      "fileid": "https://r2.ropensci.org/19308d1fc9a43bc0273c831f6b4b38dc643fc8eea95e6fbbd26990508068ec61",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/harveyklyne/actions/runs/38861896941"
    }
  ]
}