gen_check: Checking the plausibility and conversion of dom and af...

Description Usage Arguments Details

View source: R/gen_check.R

Description

Before calling struc_preparation it is necessary to bring the genetics into the correct form, which is mainly the correct dimensions.

Usage

1
gen_check(Rmx, af, dom, epis)

Arguments

Rmx

maximum resistance value, if all gene loci under consideration are homozygous resistant. \code{numeric}, ≥ 1.

af

initial frequency of resistance alleles in the population. numeric vector with length of ng (number of genes) and elements in [0,1].

dom

dominance of resistance alleles. numeric vector with length of n_loci (number of genes) and elements in [0,1].

epis

epistasis value, describing the interaction between resistance alleles. numeric. epis = 0: no interaction i.e. additive effects of resistance alleles, epis < 0: effect of resistance alleles is smaller than additive, epis > 0: effect of resistance alleles is higher than additive.

Details

If no genetics are required af has to be set to NA. The value of dom is adjusted to the length of af. If there are mismatches, the dom is cut or the first given value is repeated to fit the number of given alleles in af. The variables af and dom are corrected and n_loci is created, which is 0 when no genetics is included. If no value is given to epis it is set to 0.


PROSPER documentation built on July 2, 2020, 3:25 a.m.

Related to gen_check in PROSPER...