Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

📊 war: add conflict participants #1881

Merged
merged 58 commits into from
Nov 8, 2023
Merged

Conversation

lucasrodes
Copy link
Member

@lucasrodes lucasrodes commented Oct 31, 2023

Adding conflict participants by year and conflict type. This means creating a new table with three keys: country, year and conflict_type and one column indicating if that country was involved in a conflict for that year.

How to review

I'd say that just checking some of the charts below is enough. Maybe some details in the metadata files. But no need to go very much in detail in the code as there are different files being modified.

Countries in conflict

Indicator stating if a country was in conflict for a year and conflict type (binary indicator)

Timeline

  • Initially, we only wanted to report a binary indicator, which states if a country was or not involved in a conflict.
  • We then added a new indicator: "number of countries participating in the conflict".

Good to know

The same country can be involved in multiple conflict types. For instance, suppose a country is involved in an interstate conflict and an intrastate one. While this adds 1 to categories (number of countries in intrastate conflicts and number of countries in interstate conflicts), it also adds just 1 (and not 2) to number of countries in state-based conflicts (bc it is the same country).

Copy link
Contributor

@paarriagadap paarriagadap left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am still not sure how to review this by looking at the charts. They seem fine, but I wonder about the differences between the different sources for the number of countries in conflict. I created this chart and I don't know why COW or Mars are far from the other metrics

@lucasrodes lucasrodes marked this pull request as ready for review November 7, 2023 13:08
@lucasrodes
Copy link
Member Author

Thanks, @paarriagadap. Sorry if this was confusing. Just in case something odd strikes at first sight is enough. Feel free to review the code, but I reckon this project is slowly becoming a monster code-wise.

On

They seem fine, but I wonder about the differences between the different sources for the number of countries in conflict.

It mostly comes from the fact that the different sources have different may have different definitions for conflicts,; some include different types of conflicts, and others don't etc.

Thanks for creating the chart, it is actually very insightful on these discrepancies.

Copy link
Contributor

@paarriagadap paarriagadap left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I think it's working fine. One thing I don't like for maps is the line chart in the tooltip for a binary indicator, but I guess that's the prize to pay to have a line chart tab as well.

@lucasrodes lucasrodes merged commit e8c37a0 into master Nov 8, 2023
15 checks passed
@lucasrodes lucasrodes deleted the data/how-country-level branch November 8, 2023 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants