Learn R Programming

simer (version 1.0.0)

IndPerGen: 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
)

Value

the vector containing the individual number per generation.

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.

Author

Dong Yin

Details

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

Examples

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

Run the code above in your browser using DataLab