okaapi: an R package for generating social networks based on trait preferences
Listed in
This article is not in any list yet, why not save it to one of your lists.Abstract
Modelling of simulated networks with generative network models plays a central role for our understanding of the emergence and consequences of network structures. Accessible software that generates simulated networks based on relevant processes can facilitate the use of this important approach in behavioural ecology, and can help drive forward our understanding of animal social structures. Here we present the R package ‘okaapi’. This package can generate simulated networks based on a key driver of real social networks in many species, namely trait preferences (where individuals differentially socialize with others that have certain trait values, such as their sex, age, body size, etc.). The package provides tools for generating, visualising and quantifying trait preference networks. It uses a flexible modelling approach, where many different trait preferences can be modelled, and multiple trait preferences can affect the network simultaneously (as in real networks). It can both generate purely simulated networks, and networks based on trait data from real populations. The package can also be used for modelling networks with other node attribute effects than trait preferences, and may be useful not only for animal social networks, but also human social networks and non-social networks. This paper provides an introduction to the okaapi package, including information on kinds of studies where the package may be useful, the content of the package, how to use the package, and examples of its use (with R code included). We hope that the okaapi R package will be useful in the field of behavioural ecology and other research areas, and that it will help facilitate the use of generative network modelling in the study of animal social systems and further the integration of this approach with empirical approaches.