I'm currently working on the civil conflict, and my dataset is the UCDP Armed Conflict Dataset. My focus is on the monthly duration of the civil war. However, I'm having trouble converting the original conflict-year data into conflict-month data.
I'll provide an example of my data below:
conflict_id | start_date | end_date | year | termination |
---|---|---|---|---|
100 | 1946-05-18 | NA | 1946 | 0 |
100 | 1946-05-18 | 1947-03-01 | 1947 | 1 |
101 | 1950-05-01 | 1950-07-01 | 1947 | 1 |
I am expecting following result :
conflict_id | year | month | duration | termination |
---|---|---|---|---|
100 | 1946 | 5 | 1 | 0 |
100 | 1946 | 6 | 2 | 0 |
100 | 1946 | 7 | 3 | 0 |
... | ... | ... | ... | |
100 | 1947 | 2 | 9 | 0 |
100 | 1947 | 3 | 10 | 1 |
Any suggestions, examples would be greatly appreciated. Thank you in advance for your time and expertise!