SimSunderData: Simulation of data

Description Usage Arguments Value Author(s) Examples

Description

Simulate data under the model assumed by the MCMC inference program

Usage

1
SimSunderData(mod, theta, nsite, nloc, hap.pop.size, nalM, nalm, var.par, scale.par)

Arguments

mod

A character string equal to "G+E", "G" or "E"

theta

A vector of length 5 containing values for (alpha,beta_G,beta_E,gamma,delta)

nsite

Number of geographical locations

nloc

Number of loci

hap.pop.size

Haploid population size at each combination geographical location x locus. In the main inference function of the package (SunderInference), this number can vary across combinations of geographical locations and loci. Currently the present simulation function accepts only a single number as input.

nalM

Maximum number of alleles over the various loci

nalm

Minimum number of alleles over the various loci

var.par

Variance of the random field model for the environmental variable

scale.par

Scale parameter in the exponential covariance of the random field model for the environmental variable

Value

A list containing genotypes, geographical distance, environmental distances, model and parameters.

Author(s)

Filippo Botta

Examples

1
data(toydata,package='Sunder')

Example output

Loading required package: mnormt

Sunder documentation built on May 2, 2019, 2:17 p.m.