Description Usage Arguments Value Examples
Implements Global Moran I test to evaluate spatial autocorrelation in a units' risk propensity in the data. Positive values indicate spatial clustering of similar values.
1 2 3 4 5 6 7 8 9 |
data |
data. |
var_duration |
variable that measures duration until censoring or failure. |
var_id |
ID's unique identifier. |
var_time |
variable that measures time. |
n |
number of observation per id. |
t |
value of the confidence interval. |
threshold |
distance in kilometers. By default is 800. |
A ggplot object
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.