You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am imputing the race of individuals in a relatively large dataset (100,000+ observations) using first name, surname, and county. For around 40 observations, the function predict_race() returned NaN. I don't understand the implementation of wru well enough to understand why this occurred, but I have provided code below that allows the problem to be reproduced. The 'John Smith' observation was included to show that this problem does not necessarily affect every observation in the data frame. Also, changing the combination of first name and surname for a given observation may affect whether NaN is returned.
I am imputing the race of individuals in a relatively large dataset (100,000+ observations) using first name, surname, and county. For around 40 observations, the function predict_race() returned NaN. I don't understand the implementation of wru well enough to understand why this occurred, but I have provided code below that allows the problem to be reproduced. The 'John Smith' observation was included to show that this problem does not necessarily affect every observation in the data frame. Also, changing the combination of first name and surname for a given observation may affect whether NaN is returned.
The text was updated successfully, but these errors were encountered: