This function creates a Mendelian Inheritance Cube. It only handles simple, alphabetic genotypes. The default is 3 alleles at 1 locus, this can be extended to however many alleles one is interested in, but only at 1 locus.
cubeMendelian(
gtype = c("AA", "Aa", "aa"),
eta = NULL,
phi = NULL,
omega = NULL,
xiF = NULL,
xiM = NULL,
s = NULL
)
Vector of genotypes, with the wild-type in the first position
Genotype-specific mating fitness
Genotype-specific sex ratio at emergence
Genotype-specific multiplicative modifier of adult mortality
Genotype-specific female pupatory success
Genotype-specific male pupatory success
Genotype-specific fractional reduction(increase) in fertility
Named list containing the inheritance cube, transition matrix, genotypes, wild-type allele, and all genotype-specific parameters.