SimCommunityAssembly: SimCommunityAssembly

Description Usage Arguments Value

View source: R/Functions.R

Description

SimCommunityAssembly

Usage

1
2
3
4
SimCommunityAssembly(sims, N, local, traitsim, comsim, disable.bar = FALSE,
  output.sum.stats = TRUE, output.phydisp.stats = FALSE, lambda = c(0.05,
  2), eps = c(0.2, 0.8), sig2 = c(1, 10), alpha = c(0.01, 0.2),
  tau = c(5, 50))

Arguments

sims:

The number of simulations; sims

N:

The size of the regional communities, can be a single number or a prior range

local:

size of the local communities, can be a single number, a proportion of the regional pool (btw 0 and 1), or a prior range of proportions

traitsim:

either 'BM' or 'OU'

comsim:

either "netural", "filtering", "competition", "all"

lambda:

speciation rate, can be single number or prior range, default is a uniform prior between 0.5 and 2.0

eps:

the extinction fraction, extinction (mu) = lambda * eps, default is a uniform prior between 0.2 and 0.8

sig2:

rate of character change, can be single value or prior range, defualt is a unifom prior range between 1.0 and 10.0

alpha:

pull to trait optimum, defualt is a uniform prior range between 0.01 and 0.2

tau:

stregnth of the community assembly model, default is a uniform prior range between 1.0 and 5.0

Value

A list of two matrices, one containing all parameter values for each simulation, and the other containing all summary statistics. In both matrices, each row corresponds to one simulation


ruffleymr/CAMI documentation built on Aug. 21, 2019, 2:55 p.m.