Package: cosimmr 1.1.01

cosimmr: Fast Fitting of Stable Isotope Mixing Models with Covariates

Fast fitting of Stable Isotope Mixing Models in R. Allows for the inclusion of covariates. Also has built-in summary functions and plot functions which allow for the creation of isospace plots. Variational Bayes is used to fit these models, methods as described in: Tran et al., (2021) <doi:10.48550/arXiv.2103.01327>.

Authors:Emma Govan [cre, aut], Andrew Parnell [aut], Ahmed Shalaby [ctb], Alan Inglis [ctb]

cosimmr_1.1.01.tar.gz
cosimmr_1.1.01.zip(r-4.7)cosimmr_1.1.01.zip(r-4.6)cosimmr_1.1.01.zip(r-4.5)
cosimmr_1.1.01.tgz(r-4.6-x86_64)cosimmr_1.1.01.tgz(r-4.6-arm64)cosimmr_1.1.01.tgz(r-4.5-x86_64)cosimmr_1.1.01.tgz(r-4.5-arm64)
cosimmr_1.1.01.tar.gz(r-4.7-arm64)cosimmr_1.1.01.tar.gz(r-4.7-x86_64)cosimmr_1.1.01.tar.gz(r-4.6-arm64)cosimmr_1.1.01.tar.gz(r-4.6-x86_64)
cosimmr_1.1.01.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
cosimmr/json (API)
NEWS

# Install 'cosimmr' in R:
install.packages('cosimmr', repos = c('https://emmagovan.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/emmagovan/cosimmr/issues

Pkgdown/docs site:https://emmagovan.github.io

Uses libs:
  • openblas– Optimized BLAS
  • c++– GNU Standard C++ Library v3
  • openmp– GCC OpenMP (GOMP) support library
  • jags– Just Another Gibbs Sampler for Bayesian MCMC - binary JAGS is Just Another Gibbs Sampler. It is a program for analysis of Bayesian hierarchical models using Markov Chain Monte Carlo (MCMC) simulation not wholly unlike BUGS. JAGS was written with three aims in mind: * To have an engine for the BUGS language that runs on Unix * To be extensible, allowing users to write their own functions, distributions and samplers. * To be a plaftorm for experimentation with ideas in Bayesian modelling This package contains the 'jags' binary as well as the associated shared library modules loaded by the binary.
Datasets:

On CRAN:

Conda:

openblascppopenmpjags

4.00 score 1 stars 8 scripts 660 downloads 6 exports 53 dependencies

Last updated from:659958322c. Checks:13 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK184
linux-devel-x86_64OK198
source / vignettesOK250
linux-release-arm64OK227
linux-release-x86_64OK196
macos-release-arm64OK189
macos-release-x86_64OK280
macos-oldrel-arm64OK168
macos-oldrel-x86_64OK376
windows-develOK205
windows-releaseOK202
windows-oldrelOK208
wasm-releaseOK138

Exports:convergence_checkcosimmr_ffvbcosimmr_loadposterior_predictiveprint.cosimmr_inputprior_viz

Dependencies:abindbackportsbayesplotbootcheckmateclicodacpp11distributionaldplyrfarvergenericsggnewscaleggplot2ggridgesgluegridExtragtableisobandlabelinglatticelifecyclemagrittrmatrixStatsnumDerivpillarpkgconfigplyrposteriorpurrrR2jagsR2WinBUGSR6RColorBrewerRcppRcppArmadilloRcppDistreshape2rjagsrlangS7scalesstringistringrtensorAtibbletidyrtidyselectutf8vctrsviridisviridisLitewithr

Stable Isotope Mixing Models with Covariates in R using cosimmr

Rendered fromcosimmr.Rmdusingknitr::rmarkdownon May 23 2026.

Last update: 2024-08-30
Started: 2023-09-13

Quick start using cosimmr

Rendered fromcosimmr_quick_start.Rmdusingknitr::rmarkdownon May 23 2026.

Last update: 2024-05-31
Started: 2024-05-30

Readme and manuals

Help Manual

Help pageTopics
Alligator Dataalligator_data
Cladocera data from Galloway et al 2015.cladocera_data
Creates a plot of mean lower bound to check the FFVB model has finished. Uses 'cosimmr_ffvb' output.convergence_check
cosimmr: An R package for Stable Isotope Mixing Modelscosimmr-package cosimmr
Run a 'cosimmr_input' object through the Fixed Form Variational Bayes(FFVB) functioncosimmr_ffvb
Function to load in cosimmr data and check for errorscosimmr_load
Geese stable isotope mixing data setgeese_data
A smaller version of the Geese stable isotope mixing data setgeese_data_day1
Isopod Dataiso_data
Plot the 'cosimmr_input' data created from 'cosimmr_load'plot.cosimmr_input
Plot different features of an object created from 'cosimmr_ffvb'.plot.cosimmr_output
Plot different features of an object created from 'cosimmr_ffvb'.plot.cosimmr_pred_out
Plot the posterior predictive distribution for a cosimmr runposterior_predictive
Predicts proportion of each source in a mixture, based on values provided for covariatespredict.cosimmr_output
Print simmr input objectprint.cosimmr_input
Print a simmr output objectprint.cosimmr_output
Plot the prior distribution for a cosimmr runprior_viz
A simple fake stable isotope mixing data setsimmr_data_1
A 3-isotope fake stable isotope mixing data setsimmr_data_2
An artificial data set used to indicate effect of priorssquare_data
Summarises the output created with 'cosimmr_ffvb'summary.cosimmr_output
Summarises the output created with 'cosimmr_ffvb'summary.cosimmr_pred_out