par_variation: Variable Parameters

Description Usage Arguments See Also Examples

Description

This function can be used to let the values of a parameter vary between the different loci. When used, the values for the enclosed parameter will follow a gamma distribution with mean of the parameters original value, and the variance specified as argument variance. This requires that the original value is positive. When using this, the simulators are called separately for each locus, which can dramatically increase the time needed to simulate models with many loci.

Usage

1
par_variation(par, variance)

Arguments

par

A parameter whichs value will be made variable between the loci.

variance

The variance of the gamma distribution, which the values used for simulation will follow.

See Also

For parameters that are identical for all loci: parameter

Examples

1
2
3
4


Search within the coala package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.