Learn R Programming

jaatha (version 2.7.0)

dm.simSumStats: Simulates data according to a demographic model

Description

Simulates data according to a demographic model

Usage

dm.simSumStats(dm, parameters, sum.stats = c("all"))

Arguments

dm
The demographic model according to which the simulations should be done
parameters
A vector of parameters which should be used for the simulations. If a matrix is given, a simulation for each row of the matrix will be performed
sum.stats
A vector with names of the summary statistics to simulate, or "all" for simulating all possible statistics.

Value

  • A matrix where each row is the vector of summary statistics for the parameters in the same row of the "parameter" matrix

Examples

Run this code
dm <- dm.createDemographicModel(c(25,25), 100)
dm <- dm.addSpeciationEvent(dm,0.01,5)
dm <- dm.addMutation(dm,1,20)
dm.simSumStats(dm,c(1,10))

Run the code above in your browser using DataLab