Hi, everyone!
I'm using UCDP/PRIO armed conflict dataset and I want to create a dummy variable (incidence of conflict) that takes 1 if a country is in conflict in that year and 0 if it's not. The main variables in the dataset include countries, conflict ID, start date of a conflict event (YYYY-MM-DD), and its end date (YYYY-MM-DD).
Can anyone tell me how to create that variable?
Many thanks,
Yasmine
I'm using UCDP/PRIO armed conflict dataset and I want to create a dummy variable (incidence of conflict) that takes 1 if a country is in conflict in that year and 0 if it's not. The main variables in the dataset include countries, conflict ID, start date of a conflict event (YYYY-MM-DD), and its end date (YYYY-MM-DD).
Can anyone tell me how to create that variable?
Many thanks,
Yasmine
Comment