assort_mating: Generate the pairs selected by mothers

Description Usage Arguments Value

View source: R/assortative_mating_functions.R

Description

Generate the pairs selected by mothers

Usage

1
assort_mating(popsize, female_phenotype, male_phenotype, corr_coeff)

Arguments

female_phenotype

A numeric vector giving the phenotypes of all females

male_phenotype

A numeric phenotype giving the phenotypes of all males

corr_coeff

The correlation coefficient between phenotypes for males and females

pop_size

The number of pairs to generate.

Value

the indices of the returned mothers and fathers


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