edit_conf: Sampling the configuration table for each species

Description Usage Arguments Value

View source: R/edit_conf.R

Description

A function for randomly draw values from prior distributions in the configuration table. BayeSSC can take prior distribution for parameters as well as fixed values. However, loci of the same species need to share the same generation time, effective population size and expansion history. So these values need to be fixed for each species instead of letting BayeSSC to draw a different sample for each locus.

Usage

1
edit_conf(conf, col = c("gen", "Ne", "popratio"))

Arguments

conf

A data frame with configurations

col

A character vector containing the name of the columns, for which values need to be sampled from prior distributions. The default contains three columns in the conf data frame: "gen"(generation time), "Ne"(effective population size), and "popratio"(the population expansion ratio)

Value

A configuration data frame with randomly sampled values from prior distribution


huatengh/CoExpansionValidation documentation built on Nov. 19, 2021, 11:07 a.m.