Learn R Programming

segtest (version 2.0.0)

simf1g: Simulate genotype counts from F1 individuals

Description

Simulate genotype counts from F1 individuals

Usage

simf1g(n, g1, g2, alpha = 0, xi1 = 1/3, xi2 = 1/3)

Value

A vector of counts, where element i is the number of simulated individuals with genotype i-1.

Arguments

n

Sample size.

g1

The first parent's genotype.

g2

The second parent's genotype.

alpha

The double reduction rate.

xi1

The first parent's preferential pairing parameter.

xi2

The second parent's preferential pairing parameter.

Author

David Gerard

Examples

Run this code
set.seed(1)
simf1g(n = 10, g1 = 1, g2 = 2)

Run the code above in your browser using DataLab