Building and running a network modelThese functions allow to define the characteristics of a network (topology, initial conditions, …) and the statistical properties of the corresponding model (priors, covariates, …). |
|
---|---|
Definition of network properties |
|
Create an empty network model |
|
Set the topology in a network model. |
|
Set initial conditions in a network model |
|
Set observations in a network model |
|
Flag some network compartments as being in a steady state |
|
Flag some network compartments as being split compartments |
|
Set the half-life for radioactive tracers |
|
Register a pulse event on one of the compartment of a topology |
|
Definition of statistical properties |
|
Add fixed effects of one or several covariates to some parameters. |
|
Set the distribution family for observed sizes |
|
Set the distribution family for observed proportions |
|
Set prior(s) for a network model |
|
Get a table with parameters which are missing priors |
|
Available priors |
|
List the available priors for model parameters |
|
Define a fixed-value prior |
|
Define a uniform prior |
|
Define a truncated normal prior (on [0;+Inf]) |
|
Define a half-Cauchy prior (on [0;+Inf]) |
|
Define a beta prior (on [0;scale]) |
|
Define an exponential prior |
|
Define a gamma prior |
|
Examining a network model |
|
Return the compartments of a network model |
|
Get the grouping for a |
|
Return the parameters of a network model |
|
Return the tibble containing the priors of a networkModel |
|
Return the distribution family for observed proportions |
|
Return the distribution family for observed sizes |
|
Return the list of topologies, or a unique topology if all identical |
|
Plot a topology |
|
Running a network model |
|
Run a MCMC sampler on a network model using Stan |
|
Post-run functionsThese functions allow basic manipulation of the mcmc.list object returned when running a model. Posterior predictive checks can be performed, and network properties such as steady states can be calculated. |
|
Visualization and manipulation of MCMC samples |
|
Plot observations/trajectories/predictions from a network model |
|
Extract a tidy output from an mcmc.list |
|
Math generics for mcmc.list objects |
|
Ops generics for |
|
Combine mcmc.list objects |
|
Subset method for |
|
Draw a heatmap based on the correlations between parameters |
|
Posterior predictive checks |
|
Add a column with predictions from a fit |
|
Prepare tidy data and posterior predictions |
|
Network properties |
|
Build a tidy table with the trajectories for each iteration |
|
Build a tidy table with the calculated steady states for each iteration |
|
Build a tidy table with the flows for each iteration |
|
Visualization of network fluxes |
|
Draw a Sankey plot for a network and estimated flows |
|
Draw a Sankey plot with basic defaults |
|
A quick-and-dirty way of visualizing relative flows in a network |
|
Simulation toolkitThe package provides functions that can be used to simulate data for a given network topology and some parameter values. |
|
Sample from a prior object |
|
Sample parameter values from priors |
|
Set the parameters in a network model |
|
Generate samples from a network model |
|
DatasetsDatasets shipped with the package (example models, example run, and datasets used in the case studies). |
|
Example models and run |
|
A simple aquarium network model, ready to run |
|
An MCMC run from a simple aquarium network model |
|
Network model for nitrogen fluxes in Trinidadian streams (Collins et al. 2016) |
|
Datasets used in the case studies |
|
Eelgrass phosphate incorporation data (McRoy & Barsdate 1970) |
|
Dataset for nitrogren fluxes in a Trinidadian mountain stream (Collins 2016) |
|
Protein degradation in Arabidopsis plants (Li et al. 2017) |
|
MiscellaneousThose are mostly methods implemented in the package. Typically the package user will not need to call those functions themselves. |
|
Prior-related |
|
Implementation of the '==' operator for priors |
|
Pretty formatting of a |
|
Pretty formatting of a |
|
Function used for displaying |
|
Function used for displaying |
|
Pretty printing of a |
|
Pretty printing of a |
|
Function used for displaying |
|
Topology-related |
|
Ops generics for |
|
Convert a network topology to a tbl_graph |
|
Plot a network topology |
|
Plot a topology |
|
Pretty printing of a |
|
Others |
|
Convert a |
|
Convert a |
|
Filter method for output of tidy_data_and_posterior_predict() |
|
The 'isotracer' package |
|
Plot output from |
|
Draw from the posterior predictive distribution of the model outcome |
|
Print method for |
|
Select parameters based on their names |
|
MiscellaneousFunctions not sorted in the previous categories. |
|
Objects exported from other packages |
|
Generic for as_tbl_graph() |
|
Calculate steady-state compartment sizes for a network |
|
Convert delta notation to proportion of heavy isotope |
|
Calculate DIC from a model output |
|
Filter (alias for filter function from dplyr) |
|
Filter a tibble based on the "group" column |
|
Draw from the posterior predictive distribution of the model outcome |
|
Calculate the trajectories of a network model |
|
Convert isotopic proportions to delta values |
|
Convert a Stanfit object to a nicely named mcmc.list object |
|
Extract data from a networkModel object into a tidy tibble. |
|
Draw from the posterior predictive distribution of the model outcome |
|
Plot mcmc.list objects |