| |
| |
| |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
|
|
| rm(list=ls()) |
| library(plyr);library(dplyr, warn.conflicts = F) |
| library(tidyr) |
| library(igraph, warn.conflicts = F) |
| library(geosphere) |
| library(ggplot2) |
| library(tictoc) |
|
|
| |
|
|
| s = function(x){summary(factor(x))} |
|
|
| |
| dat3 = readRDS('4-20-20_Network-KNearest_DeID_demed.RDS') |
| |
|
|
| |
| |
|
|
| cor(dat3$Nearest5_SameRel, dat3$AllLinksSameRelig, use = 'pairwise.complete.obs') |
| cor(dat3$Nearest10_SameRel, dat3$AllLinksSameRelig, use = 'pairwise.complete.obs') |
| cor(dat3$Nearest15_SameRel, dat3$AllLinksSameRelig, use = 'pairwise.complete.obs') |
|
|
| cor(dat3$Nearest5_SameCaste, dat3$AllLinksSameCaste, use = 'pairwise.complete.obs') |
| cor(dat3$Nearest10_SameCaste, dat3$AllLinksSameCaste, use = 'pairwise.complete.obs') |
| cor(dat3$Nearest15_SameCaste, dat3$AllLinksSameCaste, use = 'pairwise.complete.obs') |
|
|
|
|