Learn R Programming

MoBPS (version 1.13.1)

get.variance: Derive variances components (add/dom)

Description

Function to derive underlying variance components (add/dom)

Usage

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

Value

Table with realized narrow/broad-sense heritability, sigma_g,a,d

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.variance(ex_pop, gen = 2)

Run the code above in your browser using DataLab