Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
66e1a72
Add 2020 Census name-dictionary build script
1beb May 22, 2026
7e71d10
Remove legacy surname path and bundled surname datasets
1beb May 22, 2026
8f9c8b3
Extract name-dictionary loading; add name_source stacking helper
1beb May 22, 2026
6d959a8
Add name_source-aware dictionary loading and I/O seam
1beb May 22, 2026
20208cb
Add resolve_name_source for census.surname deprecation mapping
1beb May 22, 2026
e5ee936
Thread name_source through predict_race; deprecate census.surname
1beb May 22, 2026
a85c776
Fix #156 (anchor c_ column regex) and #162 (impute.missing=FALSE leav…
1beb May 22, 2026
22773ea
Add v4.0.0 development handoff doc
1beb May 22, 2026
c7e0140
Stop tracking local docs/ folder
1beb May 22, 2026
5990d2d
Add return.unmatched flag (#105); fix unmatched-name "NA" surname col…
1beb May 22, 2026
70b3c61
Add wru_progress option to suppress Census progress bar (#150)
1beb May 22, 2026
18ea682
Inline single-use helpers from #105/#150 into their call sites
1beb May 22, 2026
74ad391
Don't require first/middle name data for surname-only predictions (#160)
1beb May 22, 2026
8c28681
Fix use.counties year/retry arg bug and age/sex census.data caching (…
1beb May 22, 2026
084d139
Add test for wru_progress option (#150)
1beb May 22, 2026
b90d046
Fix #161 cache test to assert the download decision, not downstream p…
1beb May 22, 2026
ab49136
Respect skip_bad_geos in fBISG path (#163)
1beb May 22, 2026
8506b69
Bump version to 4.0.0
1beb May 22, 2026
9ec6708
Drop stray @param party from modfuns docs (R CMD check NOTE)
1beb May 22, 2026
af290df
Merge branch 'main' into v4.0.0
1beb May 23, 2026
883ff6d
Merge ChangeLog into CHANGELOG.md and remove redundant ChangeLog
1beb May 25, 2026
f18a3ba
Rename CHANGELOG.md to NEWS.md
1beb May 25, 2026
1877aaf
Add test artifacts and build outputs to ignore files
1beb May 25, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ importFrom(furrr,future_map_dfr)
importFrom(piggyback,pb_download)
importFrom(purrr,map_dfr)
importFrom(rlang,"%||%")
importFrom(stats,rmultinom)
importFrom(utils,setTxtProgressBar)
importFrom(utils,txtProgressBar)
useDynLib(wru, .registration=TRUE)
7 changes: 3 additions & 4 deletions R/merge_names.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,9 @@
#' used, and \code{"last, first, middle"}, indicating that last, first, and middle names will all
#' be used.
#' @param census.surname A \code{TRUE}/\code{FALSE} object. If \code{TRUE},
#' function will call \code{merge_surnames} to merge in Pr(Race | Surname)
#' from U.S. Census Surname List (2000, 2010, or 2020) and Spanish Surname List.
#' If \code{FALSE}, user must provide a \code{name.dictionary} (see below).
#' Default is \code{TRUE}.
#' the Census-derived surname dictionary is used to merge in Pr(Surname | Race).
#' If \code{FALSE}, the augmented surname dictionary is used, or a user-supplied
#' \code{name.dictionary} (see below). Default is \code{TRUE}.
#' @param table.surnames An object of class \code{data.frame} provided by the
#' users as an alternative surname dictionary. It will consist of a list of
#' U.S. surnames, along with the associated probabilities P(name | ethnicity)
Expand Down
171 changes: 0 additions & 171 deletions R/merge_surnames.R

This file was deleted.

7 changes: 3 additions & 4 deletions R/predict_race.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,9 @@
#' is four characters. Place is five characters.
#' See below for other optional fields.
#' @param census.surname A \code{TRUE}/\code{FALSE} object. If \code{TRUE},
#' function will call \code{merge_surnames} to merge in Pr(Race | Surname)
#' from U.S. Census Surname List (2000, 2010, or 2020) and Spanish Surname List.
#' If \code{FALSE}, user must provide a \code{name.dictionary} (see below).
#' Default is \code{TRUE}.
#' the Census-derived surname dictionary is used to merge in Pr(Surname | Race).
#' If \code{FALSE}, the augmented surname dictionary is used, or a user-supplied
#' \code{name.dictionary} (see below). Default is \code{TRUE}.
#' @param surname.only A \code{TRUE}/\code{FALSE} object. If \code{TRUE}, race predictions will
#' only use surname data and calculate Pr(Race | Surname). Default is \code{FALSE}.
#' @param census.geo An optional character vector specifying what level of
Expand Down
Loading
Loading