View source: R/initialize_malefitness.R
initialize_malefitness | R Documentation |
Initialize fitness of bi-allele multi-locus genotypes of males from underlying selection coefficients frequencies, assuming that a male has percentage similar fitness to a female but always pays the cost of resistance
initialize_malefitness(wfset, ek, resistant_alleles)
@param wfset The vector of female fitness @param ek The constant for the degree to which males and females experience the same fitness @param resistant_alleles A matrix that encodes the properties of the resistant alleles, as one allele per row The resistant alleles matrix takes the form of: name (i.e. a letter), 1=haploid or 2=diploid, T=toxicity or A=assortment, effect, dominance of effect, cost, dominance of cost
@return A vector of the fitness of different genotypes @export @examples
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.