{
  "_id": "6a104726acfb0bcc41c9eddf",
  "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://kosukeimai.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-10 09:47:16 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": "dc7200b6ab6688af2bad761098ec27e3",
  "_user": "kosukeimai",
  "_type": "src",
  "_file": "wru_3.1.1.tar.gz",
  "_fileid": "08688c1335924d622e90d64ff9a7f8e20fce4f97066738d37da678c7c54c1be2",
  "_filesize": 4713145,
  "_sha256": "08688c1335924d622e90d64ff9a7f8e20fce4f97066738d37da678c7c54c1be2",
  "_created": "2026-05-10T09:47:16.000Z",
  "_published": "2026-05-22T12:08:06.103Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77376187781,
      "time": 179,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "6902788675"
    },
    {
      "job": 77376188001,
      "time": 186,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "6902789257"
    },
    {
      "job": 77376188521,
      "time": 210,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "6902791582"
    },
    {
      "job": 77376188436,
      "time": 192,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "6902789771"
    },
    {
      "job": 77376188483,
      "time": 125,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "6902808017"
    },
    {
      "job": 77376188213,
      "time": 308,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "6902827762"
    },
    {
      "job": 77376188007,
      "time": 104,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "ERROR",
      "artifact": "6902799658"
    },
    {
      "job": 77376188180,
      "time": 339,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "ERROR",
      "artifact": "6902816662"
    },
    {
      "job": 77376187972,
      "time": 223,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6902771115"
    },
    {
      "job": 77376187477,
      "time": 142,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7160092712"
    },
    {
      "job": 77376188209,
      "time": 155,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "6902786193"
    },
    {
      "job": 77376187884,
      "time": 139,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "6902784714"
    },
    {
      "job": 77376188175,
      "time": 142,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "6902784941"
    }
  ],
  "_buildurl": "https://github.com/r-universe/kosukeimai/actions/runs/25625509876",
  "_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": true,
  "_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": 6608243,
    "type": "user",
    "name": "Kosuke Imai"
  },
  "_downloads": {
    "count": 618,
    "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": true,
  "_nocasepkg": "wru",
  "_universes": [
    "kosukeimai",
    "1beb"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "3.1.1",
      "date": "2026-05-10T09:50:05.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "96995a9aa1d768860b8504036bc3afeb8a9bc155",
      "fileid": "92f9f8fa09202be0aa46ca2f9ae9289965eb9a9d69061e137c3086124c7e19da",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/kosukeimai/actions/runs/25625509876"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "3.1.1",
      "date": "2026-05-10T09:50:02.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "96995a9aa1d768860b8504036bc3afeb8a9bc155",
      "fileid": "b36da6efb6d684c50c4b4d656861e49ab5b0f389851ec37053cf4273044401b8",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/kosukeimai/actions/runs/25625509876"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "3.1.1",
      "date": "2026-05-10T09:50:35.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "96995a9aa1d768860b8504036bc3afeb8a9bc155",
      "fileid": "eeeea84b2432aa30519c90a2138ddb0bebeab30bef19c12b334f05cd584de94d",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/kosukeimai/actions/runs/25625509876"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "3.1.1",
      "date": "2026-05-10T09:50:12.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "96995a9aa1d768860b8504036bc3afeb8a9bc155",
      "fileid": "3f9b80216e75474464c2a04dd0e7021869f416c77414a91397a8b06375d93eff",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/kosukeimai/actions/runs/25625509876"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "3.1.1",
      "date": "2026-05-10T09:53:32.000Z",
      "arch": "aarch64",
      "commit": "96995a9aa1d768860b8504036bc3afeb8a9bc155",
      "fileid": "fd0549e3a714913c8fc0969278fa0776735c27cb6f29b0ef13434a5f819991b1",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/kosukeimai/actions/runs/25625509876"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "3.1.1",
      "date": "2026-05-10T09:56:04.000Z",
      "arch": "x86_64",
      "commit": "96995a9aa1d768860b8504036bc3afeb8a9bc155",
      "fileid": "8b51f64ee1a13a61562f2464eb5772d36d10be6dc2e8697b9620d0d178e67050",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/kosukeimai/actions/runs/25625509876"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "3.1.1",
      "date": "2026-05-10T09:52:09.000Z",
      "arch": "aarch64",
      "commit": "96995a9aa1d768860b8504036bc3afeb8a9bc155",
      "fileid": "2381b7b50f2dbecabcf6588bd75de5cd67c6ca04eb776c82aeff4361a52d4a2f",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/kosukeimai/actions/runs/25625509876"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "3.1.1",
      "date": "2026-05-10T09:53:51.000Z",
      "arch": "x86_64",
      "commit": "96995a9aa1d768860b8504036bc3afeb8a9bc155",
      "fileid": "c488a7a564329054542f8e3067249056ba942d3f0d5f519e84b14161f2c81d35",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/kosukeimai/actions/runs/25625509876"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "3.1.1",
      "date": "2026-05-10T09:49:15.000Z",
      "arch": "x86_64",
      "commit": "96995a9aa1d768860b8504036bc3afeb8a9bc155",
      "fileid": "0a356fe7c1cbfe6c368497b73e5185f7dcbdf062ef319bf663c846cb18fcee37",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/kosukeimai/actions/runs/25625509876"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "3.1.1",
      "date": "2026-05-10T09:48:52.000Z",
      "arch": "x86_64",
      "commit": "96995a9aa1d768860b8504036bc3afeb8a9bc155",
      "fileid": "fef27dbb68be3de8f1e7b6efeeff3f9900b9cbf94df861297058ad145ff0ada6",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/kosukeimai/actions/runs/25625509876"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "3.1.1",
      "date": "2026-05-10T09:48:52.000Z",
      "arch": "x86_64",
      "commit": "96995a9aa1d768860b8504036bc3afeb8a9bc155",
      "fileid": "b8dbab31952179b62bdd8e06f03d7341cc15458db3d0f731889e90de208a4f4e",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/kosukeimai/actions/runs/25625509876"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "3.1.1",
      "date": "2026-05-22T12:07:25.000Z",
      "arch": "emscripten",
      "commit": "96995a9aa1d768860b8504036bc3afeb8a9bc155",
      "fileid": "c3939c76c66c841b4850635480dad2798ae00fcfee39c8e54064e0475496ecd8",
      "status": "success",
      "buildurl": "https://github.com/r-universe/kosukeimai/actions/runs/25625509876"
    }
  ]
}