What is a subgroup? How socioecological factors influence interindividual distance