Learn R Programming

MoBPS (version 1.13.1)

get.fixed.effects.p: Export parametrization of fixed effects

Description

Function to export parametrization of the fixed effects

Usage

get.fixed.effects.p(
  population,
  database = NULL,
  gen = NULL,
  cohorts = NULL,
  id = NULL,
  use.id = TRUE
)

Value

Estimated breeding value of in gen/database/cohorts selected individuals

Arguments

population

Population list

database

Groups of individuals to consider for the export

gen

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

cohorts

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

id

Individual IDs to search/collect in the database

use.id

Set to TRUE to use MoBPS ids instead of Sex_Nr_Gen based names (default: FALSE)

Examples

Run this code
data(ex_pop)
population <- add.fixed.effects(ex_pop, fixed.effects = cbind(1,5))
population <- breeding.diploid(population, heritability = 0.3,
fixed.effects.p = rbind(c(1,0), c(0,1)), phenotyping.gen=2)
get.fixed.effects.p(population, gen=2)

Run the code above in your browser using DataLab