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 preprint Wijnhorst et al. (2025) <doi:10.32942/X2F65M>.
| Version: | 0.1.8 |
| Depends: | R (≥ 4.2) |
| Imports: | MASS, stats, future, future.apply |
| Suggests: | rstan, devtools, testthat, rmarkdown, knitr |
| Published: | 2026-01-30 |
| DOI: | 10.32614/CRAN.package.socialSim |
| Author: | Rori Efrain Wijnhorst
|
| Maintainer: | Rori Efrain Wijnhorst <roriwijnhorst at gmail.com> |
| BugReports: | https://github.com/RoriWijnhorst/socialSim/issues |
| License: | MIT + file LICENSE |
| URL: | https://github.com/RoriWijnhorst/socialSim |
| NeedsCompilation: | no |
| Language: | en-GB |
| Materials: | README, NEWS |
| CRAN checks: | socialSim results |
| Reference manual: | socialSim.html , socialSim.pdf |
| Vignettes: |
Getting started with socialSim (source, R code) |
| Package source: | socialSim_0.1.8.tar.gz |
| Windows binaries: | r-devel: socialSim_0.1.8.zip, r-release: socialSim_0.1.8.zip, r-oldrel: socialSim_0.1.8.zip |
| macOS binaries: | r-release (arm64): socialSim_0.1.8.tgz, r-oldrel (arm64): socialSim_0.1.8.tgz, r-release (x86_64): socialSim_0.1.8.tgz, r-oldrel (x86_64): socialSim_0.1.8.tgz |
| Old sources: | socialSim archive |
Please use the canonical form https://CRAN.R-project.org/package=socialSim to link to this page.
Need a high-speed mirror for your open-source project?
Contact our mirror admin team at info@clientvps.com.
This archive is provided as a free public service to the community.
Proudly supported by infrastructure from VPSPulse , RxServers , BuyNumber , UnitVPS , OffshoreName and secure payment technology by ArionPay.