I currently have a dataset where each observation is a person's traffic ticket history over districts.
For each column, which represents a district:
- 1 represents that a person has received 1+ traffic violations in a district in 2018
- 0 if they have been to that district but have no traffic violations.
- NA otherwise
GOAL: to (rank districts to) see which district should have more police presence due to increased traffic violation and also use the features to predict whether or not that person has 1+ traffic accidents in 2019.
PROBLEM: not all people have been to every district. I currently just encode the value to 0 if the person has never been to that district. But this should be a valid NA value. For example, it seems illogical to rank a district if only one person (in the dataset) has been to that district.
QUESTION(S): How exactly should I handle this? I don't think imputing as 0 is the right call here.
Original Data:
PersonId DistA DistB DistC DistD DistE Accident19
1 0 1 1 0 NA 1
2 NA 0 0 0 1 0
3 0 1 1 0 NA 1
4 1 0 0 0 NA 0
Imputed Data:
PersonId DistA DistB DistC DistD DistE Accident19
1 0 1 1 0 0 1
2 0 0 0 0 1 0
3 0 1 1 0 0 1
4 1 0 0 0 0 0
Many thanks in advance!