Learn R Programming

MoBPS (version 1.13.1)

get.effective.size: Estimate effective population size

Description

Function to estimate the effective population size

Usage

get.effective.size(
  population,
  gen = NULL,
  database = NULL,
  cohorts = NULL,
  id = NULL
)

Value

Estimated effective population size

Arguments

population

Population list

gen

Quick-insert for database (vector of all generations to export)

database

Groups of individuals to consider for the export

cohorts

Quick-insert for database (vector of names of cohorts to export)

id

Individual IDs to search/collect in the database

Examples

Run this code
data(ex_pop)
get.effective.size(population=ex_pop, gen=5)

Run the code above in your browser using DataLab