Description Usage Arguments Details
Run linear mixed models to identify predictors of species' eigencentralities across sites
1 | networkModel(mods_list, n_bootstraps, n_cores)
|
mods_list |
A |
n_bootstraps |
|
n_cores |
Positive integer stating the number of processing cores to split the job across.
Default is |
Species' network eigencentralities are used as the outcome variable in a linear mixed model
to identify environmental and biotic predictors. Only species with mean eigencentrality scores
in the top 25th percentile are considered, as these 'keystone' species are the ones that have the
strongest influences on community structure. The model pipeline is as follows:
1: shuffle the dataset, impute any missing species' trait values and run a linear mixed model with
species and region as random effects (variable intercepts).
2: run a full model with all possible covariates as predictors
3: use stepwise variable selection (using AIC as the loss function) to identify key predictors
4: repeat n_bootstraps
times to account for uncertainty in coefficients
Models are then run to identify predictors of site-level interaction B'os using a similar
pipeline
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.