Learn R Programming

MoBPS (version 1.13.1)

bv.standardization: BV standardization

Description

Function to get mean and genetic variance of a trait to a fixed value

Usage

bv.standardization(
  population,
  mean.target = NA,
  var.target = NA,
  gen = NULL,
  database = NULL,
  cohorts = NULL,
  adapt.bve = TRUE,
  adapt.pheno = NULL,
  verbose = FALSE,
  set.zero = FALSE,
  adapt.sigma.e = FALSE,
  traits = NULL
)

Value

Population-list with scaled QTL-effects

Arguments

population

Population list

mean.target

Target mean

var.target

Target variance

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)

adapt.bve

Modify previous breeding value estimations by scaling (default: TRUE)

adapt.pheno

Modify previous phenotypes by scaling (default: TRUE)

verbose

Set to TRUE to display prints

set.zero

Set to TRUE to have no effect on the 0 genotype (or 00 for QTLs with 2 underlying SNPs)

adapt.sigma.e

Set to TRUE to scale sigma.e values used based on scaling

traits

Use this parameter to only perform scaling of these traits (alternatively set values in mean/var.target to NA, default: all traits)

Examples

Run this code
population <- creating.diploid(nsnp=1000, nindi=100, n.additive=100)
population <- bv.standardization(population, mean.target=200, var.target=5)

Run the code above in your browser using DataLab