Package 'EpiLossR'

Title: Economic Loss Estimation for Animal Disease Mortality and Morbidity
Description: Provides standardized tools for estimating direct economic losses associated with mortality and morbidity in animal diseases. The package implements reproducible methods for calculating mortality- and morbidity-related losses using a common S3 object framework with methods for summarization, visualization, and data export. It is intended for veterinary epidemiologists, animal health economists, veterinarians, researchers, and students.
Authors: Vinodhkumar Obli Rajendran [aut, cre], Keerthi Aaradhana [aut]
Maintainer: Vinodhkumar Obli Rajendran <[email protected]>
License: GPL (>= 3)
Version: 0.1.0
Built: 2026-10-04 10:10:41 UTC
Source: https://github.com/vinodhpmd/epilossr

Help Index


Convert epi_loss to data.frame

Description

Convert epi_loss to data.frame

Usage

## S3 method for class 'epi_loss'
as.data.frame(x, ...)

Arguments

x

epi_loss object.

...

ignored.

Value

data.frame


Estimate Economic Loss Due to Animal Diseases

Description

A unified interface for estimating direct economic losses due to mortality or morbidity in animal diseases.

Usage

estimate_loss(type = c("mortality", "morbidity"), ...)

Arguments

type

Type of loss estimation. One of "mortality" or "morbidity".

...

Arguments passed to the corresponding estimation function.

Value

An object of class epi_loss.

Examples

estimate_loss(
  type = "mortality",
  animals = 100,
  mortality = 5,
  value = 10000
)

estimate_loss(
  type = "morbidity",
  affected = 20,
  duration = 10,
  daily_loss = 100,
  treatment_cost = 5000
)

Estimate Morbidity Loss

Description

Calculates the economic loss associated with morbidity in animals.

Usage

morbidity_loss(affected, duration, daily_loss, treatment_cost = 0)

Arguments

affected

Number of affected animals.

duration

Average duration of illness (days).

daily_loss

Average production loss per animal per day.

treatment_cost

Total treatment cost.

Value

An object of class epi_loss.

Examples

morbidity_loss(
  affected = 20,
  duration = 14,
  daily_loss = 250,
  treatment_cost = 5000
)

Estimate Mortality Loss

Description

Calculate the economic loss due to mortality in an animal population.

Usage

mortality_loss(animals, mortality, value)

Arguments

animals

Total number of animals at risk.

mortality

Number of animals that died.

value

Monetary value per animal.

Value

An object of class epi_loss.

Examples

mortality_loss(
  animals = 100,
  mortality = 10,
  value = 50000
)

Plot epi_loss object

Description

Plot epi_loss object

Usage

## S3 method for class 'epi_loss'
plot(x, ...)

Arguments

x

epi_loss object.

...

ignored.

Value

A bar plot.


Print epi_loss object

Description

Print epi_loss object

Usage

## S3 method for class 'epi_loss'
print(x, ...)

Arguments

x

epi_loss object.

...

ignored.


Summarize an epi_loss object

Description

Summarize an epi_loss object

Usage

## S3 method for class 'epi_loss'
summary(object, ...)

Arguments

object

An object of class epi_loss.

...

Additional arguments.

Value

Prints a summary.