Usage
dm.addRecombination(dm, lower.range, upper.range, fixed.value, par.new = T,
new.par.name = "rho", parameter, group = 0, variance = 0)
Arguments
dm
The demographic model to which recombination events should be added.
lower.range
If you want to estimate the recombination rate (see note
upper.range
Same as lower.range, but the largest possible value.
fixed.value
If specified, the mutation rate will not be estimated,
but assumed to have the given value.
par.new
If 'TRUE' a new parameter will be created using the
arguments 'lower.range' and 'upper.range' or
'fixed.value'. It will be named 'new.par.name'.
If 'FALSE' the argument 'parameter'
will be evaluated instead.
new.par.name
The name for the new parameter.
parameter
Instead of creating a new parameter, you can also
set the mutation rate to an expression based on existing
parameters. For example setting this to "rho" will use
an parameter with name theta that you have previously
created. You can also use R expression
group
Group of loci for with this feature is added. 0 means that
the feature applies to all groups, and 1 is the default group.
Set to 1 or an greater integer to set this feature only for
the corresponding group of loci.
variance
Set to a value different from 0 to introduce variation in the
the parameter value for different loci. The
variation follows a gamma distribution with mean equal to
the value provided as parameter
, and variance as given
here. Can also be set t