IndPerGen {simer}R Documentation

Individual number per generation

Description

Calculate the individual number per generation.

Usage

IndPerGen(
  pop,
  pop.gen = 2,
  ps = c(0.8, 0.8),
  reprod.way = "randmate",
  sex.rate = 0.5,
  prog = 2
)

Arguments

pop

the population information containing environmental factors and other effects.

pop.gen

the generations of simulated population.

ps

if ps <= 1, fraction selected in selection of males and females; if ps > 1, ps is number of selected males and females.

reprod.way

reproduction method, it consists of 'clone', 'dh', 'selfpol', 'randmate', 'randexself', 'assort', 'disassort', '2waycro', '3waycro', '4waycro', 'backcro', and 'userped'.

sex.rate

the sex ratio of simulated population.

prog

the progeny number of an individual.

Details

Build date: Apr 12, 2022 Last update: Apr 30, 2022

Value

the vector containing the individual number per generation.

Author(s)

Dong Yin

Examples

pop <- generate.pop(pop.ind = 100)
count.ind <- IndPerGen(pop)

[Package simer version 0.9.0.4 Index]