calculate_stillbirth_rate: Calculate stillbirth rate

View source: R/calving.R

calculate_stillbirth_rateR Documentation

Calculate stillbirth rate

Description

The program package ECOWEIGHT (C Programs for Calculating Economic Weights in Livestock) need input parameter files. This function will calculate based on calving scores as well as lactation number of the dam (primiparous vs multiparous) the stillbirth rate.

Usage

calculate_stillbirth_rate(
  ps_input_calving_tibble,
  ps_statement_firstlactation = TRUE,
  ps_statement_easycalving = TRUE,
  pb_log = FALSE,
  plogger = NULL
)

Arguments

ps_input_calving_tibble

input calving tibble coming from read_file_input_calving in this package

ps_statement_firstlactation

statement if in first lactation status (TRUE or FALSE)

ps_statement_easycalving

statement if for easy calving status (TRUE or FALSE)

pb_log

indicator whether logs should be produced

plogger

logger object

Value

stillbirth_rate vector


sknqualitasag/qp4ewc documentation built on Sept. 27, 2022, 3:31 p.m.