Closed burnhilla closed 2 years ago
This is a case where the software isn't warning you about a conflicting set of parameters. When you specify surnames.only = TRUE
, your other choices don't matter. names.to.use
is used with a census.geo
.
Hi! Thanks for your response. However, it still does not provide a solution to my problem which is trying to estimate ethnicity using FIRST and LAST name, and nothing else.
For instance,
res <- predict_race(voter.file = newdata)
produces an error "Unknown or uninitialised column: state
. "
Is there a way around this?
There is not currently a method for "surname, first" without a census geography. You might be able to try to use the raw probabilities by manipulating the merge_names / merge_surnames function.
Hi, I am trying to predict ethnicity using first name and last name. However, the predictions turn out to be same for people with the same last name, regardless of their first name.
Code below with some output:
Initialization