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
library(preacesciencr)
test <- create_stateyears(system = "gw", subset_years = c(1946:2019))
test <- add_ucdp_acd(test, type = c("intrastate", "II"), issue = "both")
table(test$ucdpongoing)
This results in two state years out of ~10,000 coded as "1" for the ucdpongoing variable: Syria in 2016 and Syria in 2018 (in case this helps with diagnosis).
R version: 4.2.2
peacesciencer version: 1.0.0
I took a brief look at the source code for the add_ucdp_acd() function, and nothing was immediately apparent that would explain why only these two years for Syria would be coded correctly in the resulting data.
The text was updated successfully, but these errors were encountered:
Looking into this now, and this might be a case where I show how little I know or think about the UCDP data, but the "both" in the issue coding is filtering on the raw UCDP ACD data where incompatibility == 3 . Doing that, there are 18 cases and that's in the raw data. Selecting on those 18 cases where type_of_conflict >= 3, you get the two Syrian cases, and that's it.
As a matter of functionality, it looks like add_ucdp_acd() is behaving as it should. If there's a better, more informative way of processing the underlying UCDP ACD data, that could be happening too. Here's where I'll reiterate I'm primarily an inter-state conflict guy. :P
No, you are correct. I was reading issue = "both" as issue = c("territory", "government"), and missing that "both" refers to a logical "and" of both categories per conflict id in the underlying UCDP variable. Closing the issue - sorry for the false alarm!
An example:
This results in two state years out of ~10,000 coded as "1" for the ucdpongoing variable: Syria in 2016 and Syria in 2018 (in case this helps with diagnosis).
R version: 4.2.2
peacesciencer version: 1.0.0
I took a brief look at the source code for the add_ucdp_acd() function, and nothing was immediately apparent that would explain why only these two years for Syria would be coded correctly in the resulting data.
The text was updated successfully, but these errors were encountered: