-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.Rmd
34 lines (21 loc) · 1.79 KB
/
index.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
title: "bootstrapnet - R package to bootstrap indices of ecological networks"
author: "by [Valentin Stefan](https://github.com/valentinitnelav) - last update `r format(Sys.time(), '%d %B %Y')`"
---
# Overview
R package for resampling network metrics/indices (bootstrapping without replacement).
It wraps around the [bipartite][bip] package functions `networklevel` and `specieslevel`.
Assuming a network/web like `Safariland` from the bipartite package:
``` r
library(bipartite)
data(Safariland)
```
One can sample interactions without replacement from the network until all interactions have been used. The sampling procedure starts with a small sample size to which interactions are added until all are consumed. Every time we sample interactions, a smaller version of the entire network can be built and a network index/metric can be computed. The sampling procedure can be repeated as many times as needed, giving the possibility to compute mean values with quantile-based confidence intervals. The mean values across sample sizes can be plotted and indices of different networks can be visually compared. See examples below.
[bip]: https://cran.r-project.org/web/packages/bipartite/index.html
Below is an animation of the sampling method (one iteration). A detailed explanation of the method can be found [here](https://valentinitnelav.github.io/bootstrapnet/explain-sampling-method.html).

See also the [README file][readme] on the GitHub code base.
[readme]: https://github.com/valentinitnelav/bootstrapnet?tab=readme-ov-file#overview
# Installation
See details in the [README file][install] on the GitHub code base.
[install]: https://github.com/valentinitnelav/bootstrapnet?tab=readme-ov-file#installation