calculate_calvesdied24h_proportion: Calculate proportion of calves died to 24 hours

View source: R/calving.R

calculate_calvesdied24h_proportionR Documentation

Calculate proportion of calves died to 24 hours

Description

The program package ECOWEIGHT (C Programs for Calculating Economic Weights in Livestock) need input parameter files. This function will calculate based on calving score, lactation number of the dam (primiparous vs multiparous) to calculate the proportion of calves died. The parameter in ECOWEIGHT specifies within 48 hours after birth. However, we only have data specified for up to 24hours after birth. Therefore we use 24hours in this function.

Usage

calculate_calvesdied24h_proportion(
  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

calves died to 24 hours proportion vector


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