run_sims: Run a number of simulations with fixed parameters

Description Usage Arguments Value

View source: R/run_simulation.R

Description

Run a number of simulations with fixed parameters

Usage

1
2
3
run_sims(nsim = 10, nspp = NULL, nsite = NULL, min.K = NULL,
  delta = NULL, run.pglmm = TRUE, force.run = FALSE,
  out.dir = getwd())

Arguments

nsim

Number of replicate simulations to run

nspp

Number of taxa to simulate.

nsite

Number of sites (equal for all taxa)

min.K

Numeric Force minimum phylogenetic signal (Blomberg's K) for simulated intercepts and slopes?

delta

'adapt_delta' parameter for brm

run.pglmm

Logical. Run PGLMM? (default is TRUE).

force.run

Logical. If FALSE (the default) simulations will NOT be run if there is a simulation output file available with same parameters (nspp, nsite). If TRUE, simulations will run and the file will be overwritten.

out.dir

Path to folder where to simulations will be saved (in RDS format).

Value

A data.frame with nrow = nspp*nsim


Pakillo/lump.split.pool.ENM documentation built on June 24, 2020, 7:37 p.m.