{
  "_id": "6aae68db3d719c1f8407c674",
  "Package": "dScoreTest",
  "Title": "Debiased Score Tests for Goodness of Fit and Model Comparison",
  "Version": "1.0.0",
  "Authors@R": "c(\nperson(\"F. Richard\", \"Guo\", email = \"ricguo@umich.edu\",\nrole = c(\"aut\", \"cre\", \"cph\"),\ncomment = c(ORCID = \"0000-0002-2081-7398\")),\nperson(\"Aditya\", \"Dhawan\", email = \"ad950@cam.ac.uk\",\nrole = \"aut\"))",
  "Description": "Debiased (Neyman-orthogonalized) score tests for assessing\nwhether a semiparametric or parametric regression model is\nwell-specified and for comparing nested models. The test\nemploys a hunt-and-test strategy: on a held-out hunt sample, it\nfits the null model and uses machine learning to find a\ndirection in which the null model's score seems positive; on an\nindependent test sample, it assesses the significance of the\nscore in the hunted direction. The test employs\northogonalization to eliminate the bias from estimating the\nnull model, yielding a test statistic that is asymptotically\nstandard normal under the null without requiring a parametric\nform for the alternative. Methods are provided for 'glm', 'lm'\nand 'mgcv::gam' fits as well as for detecting heterogeneous\ntreatment effects. The methodology is described in Dhawan, Guo\nand Shah (2026) <doi:10.48550/arXiv.2607.28861>.",
  "URL": "https://unbiased.co.in/dScoreTest/,\nhttps://github.com/richardkwo/dScoreTest",
  "BugReports": "https://github.com/richardkwo/dScoreTest/issues",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "Language": "en-US",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.3",
  "Config/testthat/edition": "3",
  "VignetteBuilder": "knitr",
  "Config/Needs/website": "rmarkdown",
  "Config/pak/sysreqs": "make",
  "Repository": "https://richardkwo.r-universe.dev",
  "Date/Publication": "2026-08-05 22:23:07 UTC",
  "RemoteUrl": "https://github.com/richardkwo/dscoretest",
  "RemoteRef": "HEAD",
  "RemoteSha": "bda20925f496e5c53c98b3f1a0379fd9fd939c60",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-09-19 10:46:46 UTC",
    "User": "root"
  },
  "Author": "F. Richard Guo [aut, cre, cph] (ORCID:\n<https://orcid.org/0000-0002-2081-7398>),\nAditya Dhawan [aut]",
  "Maintainer": "F. Richard Guo <ricguo@umich.edu>",
  "_user": "richardkwo",
  "_type": "src",
  "_file": "dScoreTest_1.0.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/477cae8026130908dcc1dd46b193b8b3fb7ee68b6043dbb9ba7fbb7b86c1da5e",
  "_filesize": 537335,
  "_sha256": "477cae8026130908dcc1dd46b193b8b3fb7ee68b6043dbb9ba7fbb7b86c1da5e",
  "_expires": "2026-12-28T10:50:01.000Z",
  "_created": "2026-09-19T10:46:46.000Z",
  "_published": "2026-09-19T10:50:02.971Z",
  "_jobs": [
    {
      "job": 105884735914,
      "time": 135,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10582393580"
    },
    {
      "job": 105884735971,
      "time": 118,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10582468512"
    },
    {
      "job": 105884735954,
      "time": 139,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "10583016728"
    },
    {
      "job": 105884735929,
      "time": 150,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10582483410"
    },
    {
      "job": 105884350617,
      "time": 197,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10583281313"
    },
    {
      "job": 105884735935,
      "time": 113,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "10582991732"
    },
    {
      "job": 105884735932,
      "time": 73,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10582793027"
    },
    {
      "job": 105884735982,
      "time": 73,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "10583212441"
    },
    {
      "job": 105884735997,
      "time": 72,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10583031694"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/richardkwo/actions/runs/35438174337",
  "_status": "success",
  "_upstream": "https://github.com/richardkwo/dscoretest",
  "_commit": {
    "id": "bda20925f496e5c53c98b3f1a0379fd9fd939c60",
    "author": "Richard Guo <ricguo@umich.edu>",
    "committer": "Richard Guo <ricguo@umich.edu>",
    "message": "CRAN\n",
    "time": 1785968587
  },
  "_maintainer": {
    "name": "F. Richard Guo",
    "email": "ricguo@umich.edu",
    "login": "richardkwo",
    "description": "cd ./causal/data/stat/graphs/compute",
    "uuid": 4409730,
    "orcid": "0000-0002-2081-7398"
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "grf",
      "role": "Imports"
    },
    {
      "package": "mgcv",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "speff2trial",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "richardkwo",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-19",
      "n": 2
    },
    {
      "week": "2026-22",
      "n": 8
    },
    {
      "week": "2026-23",
      "n": 2
    },
    {
      "week": "2026-27",
      "n": 1
    },
    {
      "week": "2026-28",
      "n": 4
    },
    {
      "week": "2026-29",
      "n": 4
    },
    {
      "week": "2026-30",
      "n": 2
    },
    {
      "week": "2026-32",
      "n": 2
    }
  ],
  "_tags": [
    {
      "name": "v1.0.0",
      "date": "2026-08-05"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "richardkwo",
      "count": 25,
      "uuid": 4409730
    }
  ],
  "_userbio": {
    "uuid": 4409730,
    "type": "user",
    "name": "Richard Guo",
    "followers": 99,
    "description": "cd ./causal/data/stat/graphs/compute"
  },
  "_downloads": {
    "count": 184,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/dScoreTest"
  },
  "_devurl": "https://github.com/richardkwo/dscoretest",
  "_pkgdown": "https://unbiased.co.in/dScoreTest/",
  "_searchresults": 12,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/dScoreTest.html",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE"
  ],
  "_homeurl": "https://github.com/richardkwo/dscoretest",
  "_realowner": "richardkwo",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.0",
      "date": "2026-09-08"
    }
  ],
  "_exports": [
    "compare_models",
    "debias_standard",
    "dScoreTest",
    "fit_CATE",
    "gof_test",
    "hte_test_conditional",
    "hunt_optimal",
    "hunt_vanilla",
    "hunt_wls",
    "score_fun",
    "weight_fun"
  ],
  "_help": [
    {
      "page": "compare_models",
      "title": "Compare two models using the debiased score test",
      "topics": [
        "compare_models"
      ]
    },
    {
      "page": "compare_models.gam",
      "title": "Compare two fitted GAM models",
      "topics": [
        "compare_models.gam"
      ]
    },
    {
      "page": "compare_models.glm",
      "title": "Compare two fitted GLM models",
      "topics": [
        "compare_models.glm"
      ]
    },
    {
      "page": "compare_models.lm",
      "title": "Compare two fitted linear models",
      "topics": [
        "compare_models.lm"
      ]
    },
    {
      "page": "debias_standard",
      "title": "Standard debiasing",
      "topics": [
        "debias_standard"
      ]
    },
    {
      "page": "dScoreTest",
      "title": "Debiased score test: goodness-of-fit test and model comparison",
      "topics": [
        "dScoreTest-package",
        "dScoreTest"
      ]
    },
    {
      "page": "fit_CATE",
      "title": "Fit the conditional treatment effect (CATE) function",
      "topics": [
        "fit_CATE"
      ]
    },
    {
      "page": "gof_test",
      "title": "Debiased score test for goodness of fit",
      "topics": [
        "gof_test"
      ]
    },
    {
      "page": "gof_test.gam",
      "title": "Goodness-of-fit test for a GAM",
      "topics": [
        "gof_test.gam"
      ]
    },
    {
      "page": "gof_test.glm",
      "title": "Goodness-of-fit test for GLM",
      "topics": [
        "gof_test.glm"
      ]
    },
    {
      "page": "gof_test.lm",
      "title": "Goodness-of-fit test for a linear model",
      "topics": [
        "gof_test.lm"
      ]
    },
    {
      "page": "hte_test_conditional",
      "title": "Test for detecting heterogeneity in the conditional treatment effect (CATE)",
      "topics": [
        "hte_test_conditional"
      ]
    },
    {
      "page": "hunt_optimal",
      "title": "Optimal hunting",
      "topics": [
        "hunt_optimal"
      ]
    },
    {
      "page": "hunt_vanilla",
      "title": "Vanilla hunting",
      "topics": [
        "hunt_vanilla"
      ]
    },
    {
      "page": "hunt_wls",
      "title": "Weighted-least-squares hunting",
      "topics": [
        "hunt_wls"
      ]
    },
    {
      "page": "new_dScoreTest",
      "title": "Constructor for the debiased score test",
      "topics": [
        "new_dScoreTest"
      ]
    },
    {
      "page": "plot.dScoreTest",
      "title": "Plot the score test",
      "topics": [
        "plot.dScoreTest"
      ]
    },
    {
      "page": "predict.CATE",
      "title": "Predict from a fitted CATE model",
      "topics": [
        "predict.CATE"
      ]
    },
    {
      "page": "print.dScoreTest",
      "title": "Print the score test",
      "topics": [
        "print.dScoreTest"
      ]
    },
    {
      "page": "score_fun",
      "title": "Score for a fitted CATE model",
      "topics": [
        "score_fun",
        "score_fun.CATE"
      ]
    },
    {
      "page": "summary.dScoreTest",
      "title": "Summary of the score test",
      "topics": [
        "print.summary.dScoreTest",
        "summary.dScoreTest"
      ]
    },
    {
      "page": "weight_fun",
      "title": "Weight for a fitted CATE model",
      "topics": [
        "weight_fun",
        "weight_fun.CATE"
      ]
    }
  ],
  "_pkglogo": "https://github.com/richardkwo/dscoretest/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/richardkwo/dscoretest/raw/HEAD/README.md",
  "_rundeps": [
    "DiceKriging",
    "grf",
    "lattice",
    "lmtest",
    "Matrix",
    "mgcv",
    "nlme",
    "Rcpp",
    "RcppEigen",
    "sandwich",
    "zoo"
  ],
  "_vignettes": [
    {
      "source": "dScoreTest.Rmd",
      "filename": "dScoreTest.html",
      "title": "Getting started with dScoreTest",
      "engine": "knitr::rmarkdown",
      "headings": [
        "What the test does",
        "Two entry points",
        "A first example",
        "Comparing nested models",
        "Choosing the hunt",
        "Where to go next"
      ],
      "created": "2026-05-29 02:16:44",
      "modified": "2026-05-29 02:16:44",
      "commits": 1
    }
  ],
  "_score": 4.681241237375588,
  "_indexed": true,
  "_nocasepkg": "dscoretest",
  "_universes": [
    "richardkwo"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-09-19T10:49:02.000Z",
      "distro": "resolute",
      "commit": "bda20925f496e5c53c98b3f1a0379fd9fd939c60",
      "fileid": "https://r2.ropensci.org/94ddfa61ede2edb1a2c069c49cbde71610e53f29a8e8dbb07b5a4c255642bf99",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/richardkwo/actions/runs/35438174337"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-09-19T10:48:51.000Z",
      "distro": "resolute",
      "commit": "bda20925f496e5c53c98b3f1a0379fd9fd939c60",
      "fileid": "https://r2.ropensci.org/e8655dfc5a50dad8d3cd1dac78dfacb9a170ad1e0e2afb69891939bd13adfb40",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/richardkwo/actions/runs/35438174337"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-09-19T10:48:48.000Z",
      "commit": "bda20925f496e5c53c98b3f1a0379fd9fd939c60",
      "fileid": "https://r2.ropensci.org/f5d3b4aa1a4225f5942c2ca37c0c988841971dbc3a4e8ed6e11ad0d18ef13c34",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/richardkwo/actions/runs/35438174337"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-09-19T10:49:03.000Z",
      "commit": "bda20925f496e5c53c98b3f1a0379fd9fd939c60",
      "fileid": "https://r2.ropensci.org/65bdd1cab64f50a58fc3ef096ae3e1909972c31473359662b25ead2866e723b9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/richardkwo/actions/runs/35438174337"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.0",
      "date": "2026-09-19T10:48:57.000Z",
      "commit": "bda20925f496e5c53c98b3f1a0379fd9fd939c60",
      "fileid": "https://r2.ropensci.org/b9f9c241adb7f432f1cd4f967958c8837846ad43137ca4a8008edf12e169126d",
      "status": "success",
      "buildurl": "https://github.com/r-universe/richardkwo/actions/runs/35438174337"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-09-19T10:47:55.000Z",
      "commit": "bda20925f496e5c53c98b3f1a0379fd9fd939c60",
      "fileid": "https://r2.ropensci.org/6fab3da65c1c0b355bab344dd4207a13359ca47cca8ab09e104a7a695fa354b2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/richardkwo/actions/runs/35438174337"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-09-19T10:47:56.000Z",
      "commit": "bda20925f496e5c53c98b3f1a0379fd9fd939c60",
      "fileid": "https://r2.ropensci.org/70f1af227a164cbd157564518b03f70a72046dccd2b14ff52a22ad2312aabfef",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/richardkwo/actions/runs/35438174337"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-09-19T10:47:56.000Z",
      "commit": "bda20925f496e5c53c98b3f1a0379fd9fd939c60",
      "fileid": "https://r2.ropensci.org/44b4552803c1e8de1deb0f746058a8e68426052f3c71434586a090de83fb5f3a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/richardkwo/actions/runs/35438174337"
    }
  ]
}