# NOT RUN {
library(BayesSPsurv)
dataw <- spduration::add_duration(data = BayesSPsurv::Walter_2015_JCR,
y = "renewed_war",
unitID = "ccode",
tID = "year",
freq = "year",
ongoing = FALSE)
plot_Moran.I(data = dataw ,
var_duration = "duration",
var_id = "ccode",
var_time = "year",
n = 12)
# }
Run the code above in your browser using DataLab