{
  "_id": "6b108c31b6d08ed7e3d99228",
  "Package": "dbreg",
  "Type": "Package",
  "Title": "Fast Regressions on Database Backends",
  "Version": "0.0.3.99",
  "Date": "2026-03-16",
  "Authors@R": "c(\nperson(\ngiven = \"Grant\",\nfamily = \"McDermott\",\nrole = c(\"aut\", \"cre\"),\nemail = \"contact@grantmcdermott.com\",\ncomment = c(ORCID = \"0000-0001-7883-8573\")\n),\nperson(\ngiven = \"James\",\nfamil = \"Brand\",\nemail = \"jamesbrandecon@gmail.com\",\nrole = c(\"aut\"),\ncomment = c(ORCID = \"0000-0002-1663-5583\")\n),\nperson(\ngiven = \"Apoorva\",\nfamil = \"Lal\",\nemail = \"lal.apoorva@gmail.com\",\nrole = c(\"ctb\"),\ncomment = c(ORCID = \"0000-0002-3697-614X\")\n),\nperson(\ngiven = \"Laurent\",\nfamil = \"Berge\",\nemail = \"laurent.berge@u-bordeaux.fr\",\nrole = c(\"ctb\")\n),\nperson(\ngiven = \"Wojtek\",\nfamil = \"Klimowicz\",\nemail = \"wojtekklimowicz96@gmail.com\",\nrole = c(\"ctb\")\n),\nperson(\ngiven = \"Vincent\",\nfamily = \"Arel-Bundock\",\nrole = \"ctb\",\nemail = \"vincent.arel-bundock@umontreal.ca\",\ncomment = c(ORCID = \"0000-0003-1995-6531\")\n)\n)",
  "Description": "Leverages database backends to run regressions on very\nlarge datasets, which may not fit into R's memory. Various\nacceleration strategies---e.g., Wong et al. (2021)\n<doi:10.48550/arXiv.2102.11297> and Arkhangelsky & Imbens\n(2024) <https://doi.org/10.1093/restud/rdad089>---allow for\nhighly efficient computation, while robust standard errors are\ncomputed from sufficient statistics.",
  "Config/Needs/website": "etiennebacher/altdoc",
  "Encoding": "UTF-8",
  "License": "MIT + file LICENSE",
  "URL": "https://grantmcdermott.com/dbreg/",
  "BugReports": "https://github.com/grantmcdermott/dbreg/issues",
  "VignetteBuilder": "quarto",
  "Roxygen": "list(markdown = TRUE)",
  "Config/roxygen2/version": "8.1.0",
  "Repository": "https://grantmcdermott.r-universe.dev",
  "Date/Publication": "2026-12-02 17:10:08 UTC",
  "RemoteUrl": "https://github.com/grantmcdermott/dbreg",
  "RemoteRef": "HEAD",
  "RemoteSha": "5553827fa74a5133c6791c03cd08fc0748a34afc",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-12-02 21:01:03 UTC",
    "User": "root"
  },
  "Author": "Grant McDermott [aut, cre] (ORCID:\n<https://orcid.org/0000-0001-7883-8573>),\nJames Brand [aut] (ORCID: <https://orcid.org/0000-0002-1663-5583>),\nApoorva Lal [ctb] (ORCID: <https://orcid.org/0000-0002-3697-614X>),\nLaurent Berge [ctb],\nWojtek Klimowicz [ctb],\nVincent Arel-Bundock [ctb] (ORCID:\n<https://orcid.org/0000-0003-1995-6531>)",
  "Maintainer": "Grant McDermott <contact@grantmcdermott.com>",
  "_user": "grantmcdermott",
  "_type": "src",
  "_file": "dbreg_0.0.3.99.tar.gz",
  "_fileid": "https://r2.ropensci.org/5252dac5577157e4fad8ed5c571d1cb868e10fb56c354752d388ae8e06ff54e1",
  "_filesize": 524639,
  "_sha256": "5252dac5577157e4fad8ed5c571d1cb868e10fb56c354752d388ae8e06ff54e1",
  "_expires": "2027-03-12T21:22:55.000Z",
  "_created": "2026-12-02T21:01:03.000Z",
  "_published": "2026-12-02T21:22:57.666Z",
  "_upstream": "https://github.com/grantmcdermott/dbreg",
  "_status": "success",
  "_maintainer": {
    "name": "Grant McDermott",
    "email": "contact@grantmcdermott.com",
    "orcid": "0000-0001-7883-8573"
  },
  "_jobs": [
    {
      "job": 143780864984,
      "time": 232,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "15654063825"
    },
    {
      "job": 143780865169,
      "time": 216,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "15654018696"
    },
    {
      "job": 143780864980,
      "time": 205,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "15656341147"
    },
    {
      "job": 143780865224,
      "time": 135,
      "config": "macos-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "15657415762"
    },
    {
      "job": 143778649068,
      "time": 198,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "15653903038"
    },
    {
      "job": 143780864986,
      "time": 103,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "15655045592"
    },
    {
      "job": 143780865186,
      "time": 165,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "15653678606"
    },
    {
      "job": 143780865112,
      "time": 173,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "15653878561"
    },
    {
      "job": 143780865128,
      "time": 187,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "15652918710"
    }
  ],
  "_buildurl": "https://github.com/r-universe/grantmcdermott/actions/runs/46969122158",
  "_commit": {
    "id": "5553827fa74a5133c6791c03cd08fc0748a34afc",
    "author": "Vincent Arel-Bundock <vincentarelbundock@users.noreply.github.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Non-ASCII factor levels on SQL Server (#107) (#112)\n\n* Non-ASCII factor levels on SQL Server (#107)\n\nFactor and i() levels were written as plain '...' literals, which SQL\nServer reads in the database's code page. A character outside it became\n'?' (CJK in a Latin1 database), and some became a near match ('e' with\nan accent as 'e'), so the level's dummy matched no row, or the rows of\nanother level, without a message.\n\nLevels are now written for the column they are compared with. The column\ntypes and collations come from sp_describe_first_result_set (metadata\nonly, also for #temp tables), matched to the columns by position:\n\n- ASCII levels: plain literals, as before.\n- NVARCHAR columns, or columns of unknown type: N'...'.\n- VARCHAR columns: CAST(N'...' COLLATE <column collation> AS\n  VARCHAR(8000)). N'...' alone would compare under Unicode rules, which\n  under legacy SQL_* collations equate strings the column keeps apart\n  (\"strasse\" and the same word with a sharp s); a plain literal would\n  lose characters the column's code page holds but the database's\n  doesn't.\n\nTests: SQL Server literal unit tests; cross-backend cases with non-ASCII\nfactor and i() levels; SQL Server VARCHAR cases (legacy collation, and a\nJapanese_CI_AS column in a Latin1 database), on a table and a #temp\ntable. The harness writes strings to SQL Server as NVARCHAR, since odbc's\ndbWriteTable() stored CJK text as '??', and checks that the fixture's\nstrings round-trip.\n\n* Convert VARCHAR literals to VARCHAR(MAX), not VARCHAR(8000)\n\nA converted non-ASCII level longer than 8000 bytes was truncated, so it\nmissed the stored level in a VARCHAR(MAX) column (checked on SQL Server\n2022). Raised by Copilot on #112.",
    "time": 1796231408
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "DBI",
      "role": "Imports"
    },
    {
      "package": "duckdb",
      "version": ">= 2.0.0",
      "role": "Imports"
    },
    {
      "package": "Formula",
      "role": "Imports"
    },
    {
      "package": "generics",
      "role": "Imports"
    },
    {
      "package": "glue",
      "role": "Imports"
    },
    {
      "package": "MASS",
      "role": "Imports"
    },
    {
      "package": "Matrix",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "tinyplot",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "binsreg",
      "role": "Suggests"
    },
    {
      "package": "data.table",
      "role": "Suggests"
    },
    {
      "package": "here",
      "role": "Suggests"
    },
    {
      "package": "fixest",
      "version": ">= 0.13.0",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "quarto",
      "role": "Suggests"
    },
    {
      "package": "RSQLite",
      "role": "Suggests"
    },
    {
      "package": "tibble",
      "role": "Suggests"
    },
    {
      "package": "tinytest",
      "role": "Suggests"
    },
    {
      "package": "dbplyr",
      "role": "Enhances"
    }
  ],
  "_owner": "grantmcdermott",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-50",
      "n": 1
    },
    {
      "week": "2025-51",
      "n": 4
    },
    {
      "week": "2025-52",
      "n": 3
    },
    {
      "week": "2026-01",
      "n": 3
    },
    {
      "week": "2026-02",
      "n": 6
    },
    {
      "week": "2026-03",
      "n": 2
    },
    {
      "week": "2026-04",
      "n": 3
    },
    {
      "week": "2026-05",
      "n": 2
    },
    {
      "week": "2026-11",
      "n": 1
    },
    {
      "week": "2026-12",
      "n": 1
    },
    {
      "week": "2026-21",
      "n": 4
    },
    {
      "week": "2026-42",
      "n": 9
    },
    {
      "week": "2026-43",
      "n": 3
    },
    {
      "week": "2026-44",
      "n": 1
    },
    {
      "week": "2026-46",
      "n": 1
    },
    {
      "week": "2026-48",
      "n": 1
    },
    {
      "week": "2026-49",
      "n": 18
    }
  ],
  "_tags": [
    {
      "name": "v0.0.3",
      "date": "2026-01-24"
    }
  ],
  "_stars": 84,
  "_contributors": [
    {
      "user": "grantmcdermott",
      "count": 126,
      "uuid": 10285037
    },
    {
      "user": "vincentarelbundock",
      "count": 12,
      "uuid": 987057
    },
    {
      "user": "jamesbrandecon",
      "count": 12,
      "uuid": 62019331
    },
    {
      "user": "wklimowicz",
      "count": 5,
      "uuid": 62679873
    },
    {
      "user": "etiennebacher",
      "count": 2,
      "uuid": 52219252
    }
  ],
  "_userbio": {
    "uuid": 10285037,
    "type": "user",
    "name": "Grant McDermott",
    "followers": 923,
    "description": "Principal Economist at Amazon. Mix of economics, data science, and open source."
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/dbreg"
  },
  "_devurl": "https://github.com/grantmcdermott/dbreg",
  "_pkgdown": "https://grantmcdermott.com/dbreg/",
  "_searchresults": 52,
  "_rbuild": "4.6.2",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/dbreg.html",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE"
  ],
  "_cranurl": false,
  "_authors": [
    {
      "name": "Grant McDermott",
      "email": "contact@grantmcdermott.com",
      "orcid": "0000-0001-7883-8573",
      "role": [
        "aut",
        "cre"
      ]
    },
    {
      "name": "James Brand",
      "email": "jamesbrandecon@gmail.com",
      "orcid": "0000-0002-1663-5583",
      "role": [
        "aut"
      ]
    },
    {
      "name": "Apoorva Lal",
      "email": "lal.apoorva@gmail.com",
      "orcid": "0000-0002-3697-614X",
      "role": [
        "ctb"
      ]
    },
    {
      "name": "Laurent Berge",
      "email": "laurent.berge@u-bordeaux.fr",
      "role": [
        "ctb"
      ]
    },
    {
      "name": "Wojtek Klimowicz",
      "email": "wojtekklimowicz96@gmail.com",
      "role": [
        "ctb"
      ]
    },
    {
      "name": "Vincent Arel-Bundock",
      "email": "vincent.arel-bundock@umontreal.ca",
      "orcid": "0000-0003-1995-6531",
      "role": [
        "ctb"
      ]
    }
  ],
  "_exports": [
    "dbbinsreg",
    "dbivreg",
    "dbreg",
    "glance",
    "gof",
    "sql_model_matrix",
    "tidy"
  ],
  "_help": [
    {
      "page": "coef.dbreg",
      "title": "Extract coefficients from dbreg objects",
      "topics": [
        "coef.dbreg"
      ]
    },
    {
      "page": "confint.dbreg",
      "title": "Confidence intervals for dbreg objects",
      "topics": [
        "confint.dbreg"
      ]
    },
    {
      "page": "dbbinsreg",
      "title": "Run a binscatter regression on a database backend and plot the result",
      "topics": [
        "dbbinsreg"
      ]
    },
    {
      "page": "dbivreg",
      "title": "Instrumental-variables regression on a database backend",
      "topics": [
        "dbivreg"
      ]
    },
    {
      "page": "dbreg",
      "title": "Run a regression on a database backend",
      "topics": [
        "dbreg"
      ]
    },
    {
      "page": "dbreg-options",
      "title": "Global options",
      "topics": [
        "dbreg-options"
      ]
    },
    {
      "page": "gof",
      "title": "Calculate goodness-of-fit metrics for dbreg objects",
      "topics": [
        "gof"
      ]
    },
    {
      "page": "plot.dbbinsreg",
      "title": "Plot method for dbbinsreg objects",
      "topics": [
        "plot.dbbinsreg",
        "tinyplot.dbbinsreg"
      ]
    },
    {
      "page": "predict.dbreg",
      "title": "Predict method for dbreg objects",
      "topics": [
        "predict.dbreg"
      ]
    },
    {
      "page": "print.dbbinsreg",
      "title": "Print method for dbbinsreg objects (binsreg-compatible format)",
      "topics": [
        "print.dbbinsreg"
      ]
    },
    {
      "page": "print.dbivreg",
      "title": "Print method for 'dbivreg' objects",
      "topics": [
        "print.dbivreg"
      ]
    },
    {
      "page": "print.dbreg",
      "title": "Print method for dbreg objects",
      "topics": [
        "print.dbreg"
      ]
    },
    {
      "page": "sql_model_matrix",
      "title": "Construct SQL expressions for a design matrix",
      "topics": [
        "sql_model_matrix"
      ]
    },
    {
      "page": "tidiers",
      "title": "Tidiers for 'dbreg' objects",
      "topics": [
        "glance.dbreg",
        "tidiers",
        "tidy.dbreg"
      ]
    },
    {
      "page": "vcov.dbreg",
      "title": "Variance-covariance matrix for dbreg objects",
      "topics": [
        "vcov.dbreg"
      ]
    }
  ],
  "_readme": "https://github.com/grantmcdermott/dbreg/raw/HEAD/README.md",
  "_rundeps": [
    "DBI",
    "duckdb",
    "Formula",
    "generics",
    "glue",
    "lattice",
    "MASS",
    "Matrix",
    "tinyplot"
  ],
  "_score": 6.171761546738936,
  "_indexed": true,
  "_nocasepkg": "dbreg",
  "_universes": [
    "grantmcdermott"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.0.3.99",
      "date": "2026-12-02T21:05:15.000Z",
      "distro": "resolute",
      "commit": "5553827fa74a5133c6791c03cd08fc0748a34afc",
      "fileid": "https://r2.ropensci.org/c7f853dea181a95f99bf7933dbb9ec2dd5e8db8d744b37c9e7ee82e66b1a50f1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/grantmcdermott/actions/runs/46969122158"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "0.0.3.99",
      "date": "2026-12-02T21:05:08.000Z",
      "distro": "resolute",
      "commit": "5553827fa74a5133c6791c03cd08fc0748a34afc",
      "fileid": "https://r2.ropensci.org/9308323bb7347856c54000cf729281307ffa9ca8e85f2f7a2a798d1be831036c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/grantmcdermott/actions/runs/46969122158"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.0.3.99",
      "date": "2026-12-02T21:20:53.000Z",
      "commit": "5553827fa74a5133c6791c03cd08fc0748a34afc",
      "fileid": "https://r2.ropensci.org/8e003269b612162fc1d06111a2b80b0228921ce8b6431d1aafef79ea25d13ebd",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/grantmcdermott/actions/runs/46969122158"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "0.0.3.99",
      "date": "2026-12-02T21:21:01.000Z",
      "commit": "5553827fa74a5133c6791c03cd08fc0748a34afc",
      "fileid": "https://r2.ropensci.org/1b9078a901adaa7f95f623d6b0a6a3f98f0ebff3140b9dbb19acfc0d8edc80f6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/grantmcdermott/actions/runs/46969122158"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.0.3.99",
      "date": "2026-12-02T21:04:33.000Z",
      "commit": "5553827fa74a5133c6791c03cd08fc0748a34afc",
      "fileid": "https://r2.ropensci.org/66ee8b800d105b7d4cf420b3169eb81af07cefb8268f84ad8dc5029147aa0e5f",
      "status": "success",
      "buildurl": "https://github.com/r-universe/grantmcdermott/actions/runs/46969122158"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.0.3.99",
      "date": "2026-12-02T21:03:14.000Z",
      "commit": "5553827fa74a5133c6791c03cd08fc0748a34afc",
      "fileid": "https://r2.ropensci.org/71a1b4c2920557b8432b19878b4c01009eec3c73a05674f5b487e627be5697ea",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/grantmcdermott/actions/runs/46969122158"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.0.3.99",
      "date": "2026-12-02T21:04:17.000Z",
      "commit": "5553827fa74a5133c6791c03cd08fc0748a34afc",
      "fileid": "https://r2.ropensci.org/3f3b62731158e1ced8cea1a61a50f9a265e42988d4c0e4d8177831ce3c540bad",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/grantmcdermott/actions/runs/46969122158"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "0.0.3.99",
      "date": "2026-12-02T21:03:11.000Z",
      "commit": "5553827fa74a5133c6791c03cd08fc0748a34afc",
      "fileid": "https://r2.ropensci.org/4dce2775ed5e1706ccc1ca395ed6cb1fa4d1d5687abeaaa7b95fbdff5b2d34d2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/grantmcdermott/actions/runs/46969122158"
    }
  ]
}