Package: socialSim 0.1.9

Rori Efrain Wijnhorst
socialSim: Simulate and Analyse Social Interaction Data
Provides tools to simulate and analyse datasets of social interactions between individuals using hierarchical Bayesian models implemented in Stan. Model fitting is performed via the 'rstan' package. Users can generate realistic interaction data where individual phenotypes influence and respond to those of their partners, with control over sampling design parameters such as the number of individuals, partners, and repeated dyads. The simulation framework allows flexible control over variation and correlation in mean trait values, social responsiveness, and social impact, making it suitable for research on interacting phenotypes and on direct and indirect genetic effects ('DGEs' and 'IGEs'). The package also includes functions to fit and compare alternative models of social effects, including impact–responsiveness, variance–partitioning, and trait-based models, and to summarise model performance in terms of bias and dispersion. For a more detailed description of the available models and impact–responsiveness, see the accompanying article Wijnhorst et al. (2026) <doi:10.1093/jeb/voag013>.
Authors:
socialSim_0.1.9.tar.gz
socialSim_0.1.9.zip(r-4.7)socialSim_0.1.9.zip(r-4.6)socialSim_0.1.9.zip(r-4.5)
socialSim_0.1.9.tgz(r-4.6-any)socialSim_0.1.9.tgz(r-4.5-any)
socialSim_0.1.9.tar.gz(r-4.7-any)socialSim_0.1.9.tar.gz(r-4.6-any)
socialSim_0.1.9.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
card.svg |card.png
socialSim/json (API)
NEWS
| # Install 'socialSim' in R: |
| install.packages('socialSim', repos = c('https://roriwijnhorst.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/roriwijnhorst/socialsim/issues
Last updated from:337cad802d. Checks:7 WARNING, 2 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | WARNING | 160 | ||
| source / vignettes | OK | 244 | ||
| linux-release-x86_64 | WARNING | 155 | ||
| macos-release-arm64 | WARNING | 220 | ||
| macos-oldrel-arm64 | WARNING | 144 | ||
| windows-devel | WARNING | 99 | ||
| windows-release | WARNING | 85 | ||
| windows-oldrel | WARNING | 100 | ||
| wasm-release | OK | 161 |
Exports:run_modelsimulate_datasummarise_results
Dependencies:codetoolsdigestfuturefuture.applyglobalslistenvMASSparallelly
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Fit one of the available Stan models to simulated datasets | run_model |
| Simulate social interaction datasets | simulate_data |
| Summarise bias and dispersion (MADm) across simulated fits | summarise_results |