Msim: Metacommunity Simulator

Description Usage Arguments Value Author(s) References Examples

View source: R/Msim.R

Description

This function launches the metacommunity simulator.

Usage

1
  Msim(parameters)

Arguments

parameters

parameters of the simulator.

Value

The returned value is a list containing the following components:

param

The model parameters used in the model simulations.

stats

The summary statistics obtained at the end of the model simulations.

weights

The weights of the different model simulations. In the standard rejection scheme, all model simulations have the same weights.

stats_normalization

The standard deviation of the summary statistics across the model simulations.

nsim

The number of model simulations performed.

nrec

The number of retained simulations (if targeted summary statistics are provided).

computime

The computing time to perform the simulations.

Author(s)

Franck Jabot

References

Pritchard, J.K., and M.T. Seielstad and A. Perez-Lezaun and M.W. Feldman (1999) Population growth of human Y chromosomes: a study of Y chromosome microsatellites. Molecular Biology and Evolution, 16, 1791–1798.

Examples

1
2
3
4
5
6
7
8
    ##### EXAMPLE 1 #####
    #####################
    set.seed(1)

    ## artificial example to show how to use the 'Msim' function.
    parameters=1:4
    stats_output=array(0,4)
    Msim(parameters,stats_output)$stats_output

metacosimulator documentation built on May 2, 2019, 5:19 p.m.