Learn R Programming

MoBPS (version 1.13.1)

computing.costs: Compute costs of a breeding program

Description

Function to derive the costs of a breeding program / population-list

Usage

computing.costs(
  population,
  phenotyping.costs = 10,
  genotyping.costs = 100,
  fix.costs = 0,
  fix.costs.annual = 0,
  profit.per.bv = 1,
  database = NULL,
  gen = NULL,
  cohorts = NULL,
  interest.rate = 1,
  base.gen = 1
)

Value

Cost-table for selected gen/database/cohorts of a population-list

Arguments

population

population-list

phenotyping.costs

Costs for the generation of a phenotype

genotyping.costs

Costs for the generation of a genotype

fix.costs

one time occurring fixed costs

fix.costs.annual

annually occurring fixed costs

profit.per.bv

profit generated by bv per animal

database

Groups of individuals to consider

gen

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

cohorts

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

interest.rate

Applied yearly interest rate

base.gen

Base generation (application of interest rate)

Examples

Run this code
data(ex_pop)
computing.costs(ex_pop, gen=1:5)

Run the code above in your browser using DataLab