{
  "_id": "6a1eea5bb401979e73411ffa",
  "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-05-19 10:04:54 UTC",
    "User": "root"
  },
  "Author": "Harvey Klyne [aut, cre, cph]",
  "Maintainer": "Harvey Klyne <hck33@cantab.ac.uk>",
  "MD5sum": "f64c0c1d1e98da30e0546f912df7eb18",
  "_user": "harveyklyne",
  "_type": "src",
  "_file": "drape_0.0.2.tar.gz",
  "_fileid": "29e0697711ac18358fb90aa1474a0b7e01acae5f30ea1018057dcc50a8d57bdf",
  "_filesize": 192130,
  "_sha256": "29e0697711ac18358fb90aa1474a0b7e01acae5f30ea1018057dcc50a8d57bdf",
  "_created": "2026-05-19T10:04:54.000Z",
  "_published": "2026-06-02T14:36:11.294Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79096367178,
      "time": 153,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7080552420"
    },
    {
      "job": 79096367796,
      "time": 197,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7080567673"
    },
    {
      "job": 79096367704,
      "time": 219,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7080562476"
    },
    {
      "job": 79096367130,
      "time": 192,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7080551943"
    },
    {
      "job": 79096366879,
      "time": 181,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7080499699"
    },
    {
      "job": 79096366195,
      "time": 124,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7360812124"
    },
    {
      "job": 79096367126,
      "time": 103,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7080535612"
    },
    {
      "job": 79096368717,
      "time": 79,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7080527399"
    },
    {
      "job": 79096367715,
      "time": 88,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7080530071"
    }
  ],
  "_buildurl": "https://github.com/r-universe/harveyklyne/actions/runs/26090186485",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_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
  },
  "_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"
  },
  "_downloads": {
    "count": 189,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/drape"
  },
  "_devurl": "https://github.com/harveyklyne/drape",
  "_searchresults": 4,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/drape.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_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-05-19T10:07:15.000Z",
      "distro": "noble",
      "commit": "659d33414bee8914cbff299cc1ec4dcadc158660",
      "fileid": "65d980285300c6cf470df34ec56a039e218c5b19487001ef97a204901f94cd35",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/harveyklyne/actions/runs/26090186485"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.0.2",
      "date": "2026-05-19T10:07:58.000Z",
      "distro": "noble",
      "commit": "659d33414bee8914cbff299cc1ec4dcadc158660",
      "fileid": "02f05a8ca0dd8df17f3d5ecbf01288cf24a8f3e8dd2f548fb2c16ca247ea0376",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/harveyklyne/actions/runs/26090186485"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.0.2",
      "date": "2026-05-19T10:07:44.000Z",
      "commit": "659d33414bee8914cbff299cc1ec4dcadc158660",
      "fileid": "d00d934ccbedbcee63e9cede8ed40db2259151c639abfe797660f453a9cc1c86",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/harveyklyne/actions/runs/26090186485"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.0.2",
      "date": "2026-05-19T10:07:09.000Z",
      "commit": "659d33414bee8914cbff299cc1ec4dcadc158660",
      "fileid": "6d111903a979147952dfea20f4c1272057968318ededf639c27fd7345b2849ae",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/harveyklyne/actions/runs/26090186485"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.0.2",
      "date": "2026-05-19T10:06:22.000Z",
      "commit": "659d33414bee8914cbff299cc1ec4dcadc158660",
      "fileid": "c6efb276ac5a9d4fb245a1b8e8aa0329c61754699c4234fddcedd72e4bdf7d2c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/harveyklyne/actions/runs/26090186485"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.0.2",
      "date": "2026-05-19T10:05:58.000Z",
      "commit": "659d33414bee8914cbff299cc1ec4dcadc158660",
      "fileid": "1f938ce5b747203d9a521eb1ce971765037e1465375604457721c0cbe65d34bb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/harveyklyne/actions/runs/26090186485"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.0.2",
      "date": "2026-05-19T10:06:05.000Z",
      "commit": "659d33414bee8914cbff299cc1ec4dcadc158660",
      "fileid": "350e9e20195b16c54d9034758a1aa5469ef593405666f25d0dad2576660b5310",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/harveyklyne/actions/runs/26090186485"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.0.2",
      "date": "2026-06-02T14:35:46.000Z",
      "commit": "659d33414bee8914cbff299cc1ec4dcadc158660",
      "fileid": "d78d8545709b8f5fd6ff2fe27040696f9b0372d878872c258c9527ae00d0fef9",
      "status": "success",
      "buildurl": "https://github.com/r-universe/harveyklyne/actions/runs/26090186485"
    }
  ]
}