# NOT RUN {
# Compute a matrix of minimum distances
# for the international system on 1/1/1946
# using the Correlates of War list and the default accuracy
# }
# NOT RUN {
wmat <- distmatrix(as.Date("1946-1-1"), type="capdist", tolerance=0.5, useGW=FALSE)
# }
# NOT RUN {
# For model estimation, our matrix should contain
# the inverted distances
# }
# NOT RUN {
wmat <- 1/wmat
# }
# NOT RUN {
# Fix the values along the diagonale
# }
# NOT RUN {
diag(wmat) <- 0
# }
Run the code above in your browser using DataLab