joining_similar_avoiding_dissimilar_covar_cont function
joining_similar_avoiding_dissimilar_covar_cont
joining_similar_avoiding_dissimilar_covar_cont
Do individuals with the same attribute tend to use the same paths and individuals with different attributes to move to different places? This statistic gives a contribution to all pairs of individuals who use the same path that is weighted by the similarity between their continuous attribute. This similarity weight is measured as the range of the attribute, minus twice the absolute difference between their covariates, normalized by the range (the weight of a pair is equal to 1 if both individuals have the same attribute, and -1 if the absolute difference between their attributes is equal to the range).