{
  "_id": "6a2695e624555f66ed51d223",
  "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-06-08 10:06:29 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": "62149fd33a485f1d6939a9f3484def3f",
  "_user": "alarm-redist",
  "_type": "src",
  "_file": "wru_3.1.1.tar.gz",
  "_fileid": "7b17f64efc497cf281a3a9b60f869e789e57a821f1f070e36548f88983af2174",
  "_filesize": 4716082,
  "_sha256": "7b17f64efc497cf281a3a9b60f869e789e57a821f1f070e36548f88983af2174",
  "_created": "2026-06-08T10:06:29.000Z",
  "_published": "2026-06-08T10:13:58.009Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 80069885333,
      "time": 211,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "7477262480"
    },
    {
      "job": 80069885360,
      "time": 202,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "7477258123"
    },
    {
      "job": 80069885376,
      "time": 176,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7477250229"
    },
    {
      "job": 80069885371,
      "time": 172,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7477247691"
    },
    {
      "job": 80069885359,
      "time": 112,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "7477225198"
    },
    {
      "job": 80069885325,
      "time": 385,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "7477324211"
    },
    {
      "job": 80069885323,
      "time": 116,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "ERROR",
      "artifact": "7477226648"
    },
    {
      "job": 80069885327,
      "time": 245,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7477274494"
    },
    {
      "job": 80069240702,
      "time": 214,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7477183882"
    },
    {
      "job": 80069885294,
      "time": 180,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7477249836"
    },
    {
      "job": 80069885409,
      "time": 166,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "7477245120"
    },
    {
      "job": 80069885397,
      "time": 142,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "7477236479"
    },
    {
      "job": 80069885361,
      "time": 144,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7477236663"
    }
  ],
  "_buildurl": "https://github.com/r-universe/alarm-redist/actions/runs/27130252706",
  "_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",
    "description": "",
    "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": 139,
  "_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": 635,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/wru"
  },
  "_devurl": "https://github.com/kosukeimai/wru",
  "_searchresults": 161,
  "_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",
    "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.127991926669589,
  "_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-06-08T10:09:54.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "96995a9aa1d768860b8504036bc3afeb8a9bc155",
      "fileid": "92713e25af22f15b9736aed7f3075d1efcfa0cd17f5259b9eabf3b543a6a22b3",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/alarm-redist/actions/runs/27130252706"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "3.1.1",
      "date": "2026-06-08T10:09:43.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "96995a9aa1d768860b8504036bc3afeb8a9bc155",
      "fileid": "5720b2877e0a07d8ffca2d785560476f00fcf2e99efef6dda0cd276506a7f0ba",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/alarm-redist/actions/runs/27130252706"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "3.1.1",
      "date": "2026-06-08T10:09:21.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "96995a9aa1d768860b8504036bc3afeb8a9bc155",
      "fileid": "2aba901e3883785b36384afacc660227a51f56e22d769e0b5e624417d0c1f23b",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/alarm-redist/actions/runs/27130252706"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "3.1.1",
      "date": "2026-06-08T10:09:16.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "96995a9aa1d768860b8504036bc3afeb8a9bc155",
      "fileid": "611b017c661a3f76735edd5f4287a21f2a5adbc6951bfa74045d8bcb5f7ad693",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/alarm-redist/actions/runs/27130252706"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "3.1.1",
      "date": "2026-06-08T10:08:24.000Z",
      "arch": "aarch64",
      "commit": "96995a9aa1d768860b8504036bc3afeb8a9bc155",
      "fileid": "9cf3be4d8953e6f26758efd6cebc916dd982c71ed4a0ad1289ff97e4a378beac",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/alarm-redist/actions/runs/27130252706"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "3.1.1",
      "date": "2026-06-08T10:11:37.000Z",
      "arch": "x86_64",
      "commit": "96995a9aa1d768860b8504036bc3afeb8a9bc155",
      "fileid": "e7de60ce007562ec995ebf7420144a9f89129da3caee288a1747ee4d238c0a75",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/alarm-redist/actions/runs/27130252706"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "3.1.1",
      "date": "2026-06-08T10:08:31.000Z",
      "arch": "aarch64",
      "commit": "96995a9aa1d768860b8504036bc3afeb8a9bc155",
      "fileid": "ac9948689eea092731998bc8e2faf61534198b9aa4ae2ae634ab22ee0edfb674",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/alarm-redist/actions/runs/27130252706"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "3.1.1",
      "date": "2026-06-08T10:10:05.000Z",
      "arch": "x86_64",
      "commit": "96995a9aa1d768860b8504036bc3afeb8a9bc155",
      "fileid": "3130865c06dbc6fc58cc6f128e4f740de49f64248d9ea0ac9ce88e6fed0d3b4a",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/alarm-redist/actions/runs/27130252706"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "3.1.1",
      "date": "2026-06-08T10:09:47.000Z",
      "arch": "emscripten",
      "commit": "96995a9aa1d768860b8504036bc3afeb8a9bc155",
      "fileid": "9a5f32da09f53839f139ac2f649bb2f5df29b0bec14c158d8b37b3c416ecf2ee",
      "status": "success",
      "buildurl": "https://github.com/r-universe/alarm-redist/actions/runs/27130252706"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "3.1.1",
      "date": "2026-06-08T10:08:25.000Z",
      "arch": "x86_64",
      "commit": "96995a9aa1d768860b8504036bc3afeb8a9bc155",
      "fileid": "87a27de9cf4f69a2c564fbea884c5ae8adc19c219b9df41244660d30a224e7ca",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/alarm-redist/actions/runs/27130252706"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "3.1.1",
      "date": "2026-06-08T10:08:13.000Z",
      "arch": "x86_64",
      "commit": "96995a9aa1d768860b8504036bc3afeb8a9bc155",
      "fileid": "384f43e525e867786da2d76eb40545e439826b5e89b72492082d62d6c7cae7fc",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/alarm-redist/actions/runs/27130252706"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "3.1.1",
      "date": "2026-06-08T10:08:12.000Z",
      "arch": "x86_64",
      "commit": "96995a9aa1d768860b8504036bc3afeb8a9bc155",
      "fileid": "2ab94fe992bbbd01adfc1971c4e85d178ebf289c0e71ac42c2c007430689006d",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/alarm-redist/actions/runs/27130252706"
    }
  ]
}