knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

From theory to empiricism

What we got so far

SimuNet generate network simulation in the form of scanLists.

By default, scanLists are of scanList.type "theoretical": generated edges are drawn from the posterior distribution obtained from Bayesian inference, nothing more. Therefore, edge weight distribution will follow an unaltered Beta-binomial distribution inferred from inputted observed data. See more on the article on network uncertainty!

library(SimuNet)
# TODO: insert a demo graph matching simulations with their expected beta-binomial distribution

Experimental design

But SimuNet has been conceptualized to embed a way to also simulate empirical phenomenon. These can include:

The general approach is based on the concept of experimental designs, that consists in performing multiple "elementary" manipulations:

# TODO: insert a schematic

Designing experiments

Once the user knows what sequence of manipulations defines the experimental design, the function design_exp() can be used to generate a expDesign object:

Running experiments

expDesign objects can be used as arguments in simunet() and perform_exp()

Users can also input several expDesign objects in one call of either simunet() and perform_exp() to run several experimental design on a given theoretical scanList, allowing for easier comparison: returned object is then a list of scanLists, aptly named sLlist objects. provided building blocks are written to seamlessly be applied to a scanList or sLlist, but user-defined functions could benefit from using lapply() (e.g. lapply(scanList,my_fun))

# TODO: insert a schematic

Thinking in experimental designs

Experimental design's philosophy can see inspiration from:

We believe that with this approach based on experimental design, SimuNet can be used as a framework to assess network uncertainty resulting from both the Bayesian framework adopted, as well as under due to empirical matters.



R-KenK/SimuNet documentation built on Oct. 22, 2021, 1:27 a.m.