{
  "_id": "6a105b01acfb0bcc41ca3c77",
  "Package": "wru",
  "Title": "Who are You? Bayesian Prediction of Racial Category Using\nSurname, First Name, Middle Name, and Geolocation",
  "Version": "3.1.1",
  "Date": "2026-04-30",
  "Authors@R": "c(\nperson(\"Kabir\", \"Khanna\", , \"kabirkhanna@gmail.com\", role = \"aut\"),\nperson(\"Brandon\", \"Bertelsen\", , \"brandon@bertelsen.ca\", role = c(\"aut\", \"cre\")),\nperson(\"Santiago\", \"Olivella\", , \"olivella@unc.edu\", role = \"aut\"),\nperson(\"Evan\", \"Rosenman\", , \"etrrosenman@gmail.com\", role = \"aut\"),\nperson(\"Alexander\", \"Rossell Hayes\", , \"alexander@rossellhayes.com\", role = \"aut\"),\nperson(\"Kosuke\", \"Imai\", , \"imai@harvard.edu\", role = \"aut\"),\nperson(\"Noah\", \"Dasanaike\", , \"noahdasanaike@g.harvard.edu\", role = \"aut\")\n)",
  "Description": "Predicts individual race/ethnicity using surname, first\nname, middle name, geolocation, and other attributes, such as\ngender and age. The method utilizes Bayes' Rule (with optional\nmeasurement error correction) to compute the posterior\nprobability of each racial category for any given individual.\nThe package implements methods described in Imai and Khanna\n(2016) \"Improving Ecological Inference by Predicting Individual\nEthnicity from Voter Registration Records\" Political Analysis\n<DOI:10.1093/pan/mpw001> and Imai, Olivella, and Rosenman\n(2022) \"Addressing census data problems in race imputation via\nfully Bayesian Improved Surname Geocoding and name supplements\"\n<DOI:10.1126/sciadv.adc9824>.  The package also incorporates\nthe data described in Rosenman, Olivella, and Imai (2023) \"Race\nand ethnicity data for first, middle, and surnames\"\n<DOI:10.1038/s41597-023-02202-2>.",
  "License": "GPL (>= 3)",
  "URL": "https://github.com/kosukeimai/wru",
  "BugReports": "https://github.com/kosukeimai/wru/issues",
  "Config/testthat/edition": "3",
  "Encoding": "UTF-8",
  "LazyData": "yes",
  "LazyDataCompression": "xz",
  "LazyLoad": "yes",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.1",
  "Config/pak/sysreqs": "libabsl-dev cmake libgdal-dev gdal-bin libgeos-dev\ngit make libicu-dev libuv1-dev libssl-dev libproj-dev\nlibsqlite3-dev libudunits2-dev libx11-dev",
  "Repository": "https://alarm-redist.r-universe.dev",
  "Date/Publication": "2026-05-09 02:59:48 UTC",
  "RemoteUrl": "https://github.com/kosukeimai/wru",
  "RemoteRef": "HEAD",
  "RemoteSha": "96995a9aa1d768860b8504036bc3afeb8a9bc155",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-05-09 05:52:12 UTC",
    "User": "root"
  },
  "Author": "Kabir Khanna [aut],\nBrandon Bertelsen [aut, cre],\nSantiago Olivella [aut],\nEvan Rosenman [aut],\nAlexander Rossell Hayes [aut],\nKosuke Imai [aut],\nNoah Dasanaike [aut]",
  "Maintainer": "Brandon Bertelsen <brandon@bertelsen.ca>",
  "MD5sum": "eec2b9db40d4ec7d938f782820d35e4e",
  "_user": "alarm-redist",
  "_type": "src",
  "_file": "wru_3.1.1.tar.gz",
  "_fileid": "abdf125bc5fe0cb2b1d3cfcd79e83883384f745663303e123a72dc2f1f4efed1",
  "_filesize": 4713222,
  "_sha256": "abdf125bc5fe0cb2b1d3cfcd79e83883384f745663303e123a72dc2f1f4efed1",
  "_created": "2026-05-09T05:52:12.000Z",
  "_published": "2026-05-22T13:32:49.956Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77389838657,
      "time": 163,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "6893372266"
    },
    {
      "job": 77389838275,
      "time": 187,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "6893374834"
    },
    {
      "job": 77389838944,
      "time": 172,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "6893373387"
    },
    {
      "job": 77389838504,
      "time": 180,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "6893374057"
    },
    {
      "job": 77389838859,
      "time": 108,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "6893365941"
    },
    {
      "job": 77389838997,
      "time": 233,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "6893379906"
    },
    {
      "job": 77389838226,
      "time": 123,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "6893367645"
    },
    {
      "job": 77389838558,
      "time": 177,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "ERROR",
      "artifact": "6893373988"
    },
    {
      "job": 77389837384,
      "time": 210,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6893354195"
    },
    {
      "job": 77389837460,
      "time": 150,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7161754905"
    },
    {
      "job": 77389838352,
      "time": 124,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "6893368018"
    },
    {
      "job": 77389838324,
      "time": 142,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "6893369713"
    },
    {
      "job": 77389838451,
      "time": 153,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "6893371023"
    }
  ],
  "_buildurl": "https://github.com/r-universe/alarm-redist/actions/runs/25593329674",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/kosukeimai/wru",
  "_commit": {
    "id": "96995a9aa1d768860b8504036bc3afeb8a9bc155",
    "author": "Brandon Bertelsen <brandon@bertelsen.ca>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Add entry for version 3.1.1 bugfix",
    "time": 1778295588
  },
  "_maintainer": {
    "name": "Brandon Bertelsen",
    "email": "brandon@bertelsen.ca",
    "login": "1beb",
    "uuid": 421859
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "utils",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "RcppArmadillo",
      "role": "LinkingTo"
    },
    {
      "package": "cli",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "furrr",
      "role": "Imports"
    },
    {
      "package": "future",
      "role": "Imports"
    },
    {
      "package": "piggyback",
      "version": ">= 0.1.4",
      "role": "Imports"
    },
    {
      "package": "PL94171",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Imports"
    },
    {
      "package": "Rcpp",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "covr",
      "role": "Suggests"
    },
    {
      "package": "reticulate",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "tidycensus",
      "role": "Suggests"
    }
  ],
  "_owner": "kosukeimai",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-19",
      "n": 5
    }
  ],
  "_tags": [
    {
      "name": "v3.1.0",
      "date": "2026-05-07"
    },
    {
      "name": "v3.1.1",
      "date": "2026-05-09"
    }
  ],
  "_stars": 138,
  "_contributors": [
    {
      "user": "1beb",
      "count": 111,
      "uuid": 421859
    },
    {
      "user": "kkprinceton",
      "count": 90,
      "uuid": 15332071
    },
    {
      "user": "rossellhayes",
      "count": 67,
      "uuid": 44556601
    },
    {
      "user": "hj08003",
      "count": 60,
      "uuid": 12300963
    },
    {
      "user": "solivella",
      "count": 49,
      "uuid": 13560956
    },
    {
      "user": "mdblocker",
      "count": 32,
      "uuid": 46643241
    },
    {
      "user": "xiyuy",
      "count": 19,
      "uuid": 90369889
    },
    {
      "user": "noahdasanaike",
      "count": 15,
      "uuid": 23142832
    },
    {
      "user": "kosukeimai",
      "count": 13,
      "uuid": 6608243
    },
    {
      "user": "etrrosenman",
      "count": 5,
      "uuid": 1414011
    },
    {
      "user": "avesh-krishna",
      "count": 4,
      "uuid": 29965675
    },
    {
      "user": "soodoku",
      "count": 3,
      "uuid": 721466
    },
    {
      "user": "corymccartan",
      "count": 1,
      "uuid": 2958471
    }
  ],
  "_userbio": {
    "uuid": 81447081,
    "type": "organization",
    "name": "ALARM Project",
    "description": "Algorithm-Assisted Redistricting Methodology"
  },
  "_downloads": {
    "count": 588,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/wru"
  },
  "_devurl": "https://github.com/kosukeimai/wru",
  "_searchresults": 137,
  "_topics": [
    "cpp"
  ],
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/readme.html",
    "extra/readme.md",
    "extra/wru.html",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/kosukeimai/wru",
  "_realowner": "kosukeimai",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.0-1",
      "date": "2015-12-09"
    },
    {
      "version": "0.0-2",
      "date": "2016-03-11"
    },
    {
      "version": "0.1-1",
      "date": "2016-12-13"
    },
    {
      "version": "0.1-2",
      "date": "2017-03-05"
    },
    {
      "version": "0.1-3",
      "date": "2017-04-14"
    },
    {
      "version": "0.1-4",
      "date": "2017-05-05"
    },
    {
      "version": "0.1-5",
      "date": "2017-06-08"
    },
    {
      "version": "0.1-6",
      "date": "2017-08-17"
    },
    {
      "version": "0.1-7",
      "date": "2017-09-01"
    },
    {
      "version": "0.1-8",
      "date": "2019-02-13"
    },
    {
      "version": "0.1-9",
      "date": "2019-02-21"
    },
    {
      "version": "0.1-10",
      "date": "2020-10-22"
    },
    {
      "version": "0.1-11",
      "date": "2021-04-22"
    },
    {
      "version": "0.1-12",
      "date": "2021-05-17"
    },
    {
      "version": "1.0.0",
      "date": "2022-06-21"
    },
    {
      "version": "1.0.1",
      "date": "2022-10-21"
    },
    {
      "version": "3.0.0",
      "date": "2024-02-16"
    },
    {
      "version": "3.0.1",
      "date": "2024-02-28"
    },
    {
      "version": "3.0.2",
      "date": "2024-04-04"
    },
    {
      "version": "3.0.3",
      "date": "2024-05-24"
    },
    {
      "version": "3.1.0",
      "date": "2026-05-07"
    }
  ],
  "_exports": [
    "as_fips_code",
    "as_state_abbreviation",
    "format_legacy_data",
    "get_census_data",
    "predict_race",
    "setup_ebisg"
  ],
  "_datasets": [
    {
      "name": "state_fips",
      "title": "Dataset with FIPS codes for US states",
      "object": "state_fips",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "state",
        "state_code",
        "state_name"
      ],
      "rows": 57,
      "table": true,
      "tojson": true
    },
    {
      "name": "surnames2000",
      "title": "Census Surname List (2000).",
      "object": "surnames2000",
      "class": [
        "data.frame"
      ],
      "fields": [
        "surname",
        "p_whi",
        "p_bla",
        "p_his",
        "p_asi",
        "p_oth"
      ],
      "rows": 157728,
      "table": true,
      "tojson": true
    },
    {
      "name": "surnames2010",
      "title": "Census Surname List (2010).",
      "object": "surnames2010",
      "class": [
        "data.frame"
      ],
      "fields": [
        "surname",
        "p_whi",
        "p_bla",
        "p_his",
        "p_asi",
        "p_oth"
      ],
      "rows": 167613,
      "table": true,
      "tojson": true
    },
    {
      "name": "voters",
      "title": "Example voter file.",
      "object": "voters",
      "class": [
        "data.frame"
      ],
      "fields": [
        "VoterID",
        "surname",
        "state",
        "CD",
        "county",
        "tract",
        "block",
        "precinct",
        "age",
        "sex",
        "party",
        "PID",
        "place",
        "last",
        "first"
      ],
      "rows": 10,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "ebisg",
      "title": "Utilities for eBISG (embedding-supplemented BISG)",
      "topics": [
        "ebisg"
      ]
    },
    {
      "page": "format_legacy_data",
      "title": "Legacy data formatting function.",
      "topics": [
        "format_legacy_data"
      ]
    },
    {
      "page": "get_census_data",
      "title": "Multilevel Census data download function.",
      "topics": [
        "get_census_data"
      ]
    },
    {
      "page": "predict_race",
      "title": "Race prediction function.",
      "topics": [
        "predict_race"
      ]
    },
    {
      "page": "setup_ebisg",
      "title": "Set up Python environment for eBISG predictions",
      "topics": [
        "setup_ebisg"
      ]
    },
    {
      "page": "state_fips",
      "title": "Dataset with FIPS codes for US states",
      "topics": [
        "state_fips"
      ]
    },
    {
      "page": "surnames2000",
      "title": "Census Surname List (2000).",
      "topics": [
        "surnames2000"
      ]
    },
    {
      "page": "surnames2010",
      "title": "Census Surname List (2010).",
      "topics": [
        "surnames2010"
      ]
    },
    {
      "page": "voters",
      "title": "Example voter file.",
      "topics": [
        "voters"
      ]
    },
    {
      "page": "wru_data_preflight",
      "title": "Preflight for name data",
      "topics": [
        "wru_data_preflight"
      ]
    }
  ],
  "_pkglogo": "https://github.com/kosukeimai/wru/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/kosukeimai/wru/raw/HEAD/README.md",
  "_rundeps": [
    "askpass",
    "bit",
    "bit64",
    "cachem",
    "class",
    "classInt",
    "cli",
    "clipr",
    "codetools",
    "cpp11",
    "crayon",
    "curl",
    "DBI",
    "digest",
    "dplyr",
    "e1071",
    "fastmap",
    "foreign",
    "fs",
    "furrr",
    "future",
    "generics",
    "gh",
    "gitcreds",
    "globals",
    "glue",
    "hms",
    "httr",
    "httr2",
    "ini",
    "jsonlite",
    "KernSmooth",
    "lifecycle",
    "listenv",
    "lubridate",
    "magrittr",
    "MASS",
    "memoise",
    "mime",
    "openssl",
    "parallelly",
    "piggyback",
    "pillar",
    "pkgconfig",
    "PL94171",
    "prettyunits",
    "progress",
    "proxy",
    "purrr",
    "R6",
    "rappdirs",
    "Rcpp",
    "RcppArmadillo",
    "readr",
    "rlang",
    "s2",
    "sf",
    "stringi",
    "stringr",
    "sys",
    "tibble",
    "tidyr",
    "tidyselect",
    "timechange",
    "tinytiger",
    "tzdb",
    "units",
    "utf8",
    "vctrs",
    "vroom",
    "withr",
    "wk"
  ],
  "_sysdeps": [
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "14.2.0-4ubuntu2~24.04.1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_score": 7.054750903941287,
  "_indexed": false,
  "_nocasepkg": "wru",
  "_universes": [
    "alarm-redist"
  ],
  "_indexurl": "https://kosukeimai.r-universe.dev/wru",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "3.1.1",
      "date": "2026-05-09T05:54:50.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "96995a9aa1d768860b8504036bc3afeb8a9bc155",
      "fileid": "90766a7d4b101613a33ec9d9aa9fba96a9de4b7dd9d3d27167565f04e63e06d4",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/alarm-redist/actions/runs/25593329674"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "3.1.1",
      "date": "2026-05-09T05:55:03.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "96995a9aa1d768860b8504036bc3afeb8a9bc155",
      "fileid": "733c817a4ea8d0c8935beb954f356ba7322a9d09c54e70b1b86da378017b6ba7",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/alarm-redist/actions/runs/25593329674"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "3.1.1",
      "date": "2026-05-09T05:54:58.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "96995a9aa1d768860b8504036bc3afeb8a9bc155",
      "fileid": "b244ca444730ef2a950c4a228ecfa0ebfb78f7e23ad1aed8d258fc840748d080",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/alarm-redist/actions/runs/25593329674"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "3.1.1",
      "date": "2026-05-09T05:55:02.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "96995a9aa1d768860b8504036bc3afeb8a9bc155",
      "fileid": "3a7c11085f3117c38dc7f59909eef526f4b6add3743c3f4ae3221f057ca42256",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/alarm-redist/actions/runs/25593329674"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "3.1.1",
      "date": "2026-05-09T05:53:56.000Z",
      "arch": "aarch64",
      "commit": "96995a9aa1d768860b8504036bc3afeb8a9bc155",
      "fileid": "e5cb4c388a4f237cd3b3a07fcb287ea4acf3598ff77c9b5da44e570b135b4aaa",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/alarm-redist/actions/runs/25593329674"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "3.1.1",
      "date": "2026-05-09T05:55:36.000Z",
      "arch": "x86_64",
      "commit": "96995a9aa1d768860b8504036bc3afeb8a9bc155",
      "fileid": "33ed387d34a5b50d084fb6dd0f602f5b24e1067b1f7bc76f2049f52454fd1434",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/alarm-redist/actions/runs/25593329674"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "3.1.1",
      "date": "2026-05-09T05:54:12.000Z",
      "arch": "aarch64",
      "commit": "96995a9aa1d768860b8504036bc3afeb8a9bc155",
      "fileid": "d28c0502a815e56ca24f66f68bedf7475eae781409162d7151bc4dd4b73f9b52",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/alarm-redist/actions/runs/25593329674"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "3.1.1",
      "date": "2026-05-09T05:54:48.000Z",
      "arch": "x86_64",
      "commit": "96995a9aa1d768860b8504036bc3afeb8a9bc155",
      "fileid": "d40ffbaa7965ff145a6613f1ac32133482db86cea306609911addc6dd616e4a1",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/alarm-redist/actions/runs/25593329674"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "3.1.1",
      "date": "2026-05-09T05:53:52.000Z",
      "arch": "x86_64",
      "commit": "96995a9aa1d768860b8504036bc3afeb8a9bc155",
      "fileid": "409a712e7f99f99c1e4a1b3f848366f20573257f51a545187176027ca19e7607",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/alarm-redist/actions/runs/25593329674"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "3.1.1",
      "date": "2026-05-09T05:53:54.000Z",
      "arch": "x86_64",
      "commit": "96995a9aa1d768860b8504036bc3afeb8a9bc155",
      "fileid": "6d3a255b1bca941189d9756a7711c9fb26a7cb287cd4506e61dbf2ff54ad0718",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/alarm-redist/actions/runs/25593329674"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "3.1.1",
      "date": "2026-05-09T05:53:58.000Z",
      "arch": "x86_64",
      "commit": "96995a9aa1d768860b8504036bc3afeb8a9bc155",
      "fileid": "a8af50ac490fecc78dc570aa8058a2223ac054a341432e34af26be3060b62663",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/alarm-redist/actions/runs/25593329674"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "3.1.1",
      "date": "2026-05-22T13:32:09.000Z",
      "arch": "emscripten",
      "commit": "96995a9aa1d768860b8504036bc3afeb8a9bc155",
      "fileid": "5d085d5fbe479f9a40624bdd46fa8bca81627d3782f48178e01798f7e01a2d3c",
      "status": "success",
      "buildurl": "https://github.com/r-universe/alarm-redist/actions/runs/25593329674"
    }
  ]
}