generate_effects: Get the genotype effects for each locus for two traits.

Description Usage Arguments Value

View source: R/assortative_mating_functions.R

Description

The genotype effects consist of the effect for each locus, which is drawn from a Normal(0,1) distribution for each locus and the genetic standard deviation of that trait which is the standard deviation for each trait normalised by the allele frequency.

Usage

1
generate_effects(loci, allele_freq, env_var)

Arguments

loci

A vector with the loci affecting the trait.

allele_freq

The allele frequency of sampled loci. A vector at least as long as max loci specified.

env_var

The environmental variance for the trait.

Value

A list with elements of the effect and the genetic standard deviation on the trait of class effects


ijwilson/gencorram documentation built on Dec. 20, 2021, 6:55 p.m.