outcome_validation: Outcome validation simulation

View source: R/outcome_validation.R

outcome_validationR Documentation

Outcome validation simulation

Description

This function replicates the validation exercise from Keen et al. (2023) to determine what our strike detection rate would need to be in order for our results to be plausible given that we have never observed a strike in our study area.

Usage

outcome_validation(
  outcomes,
  eventcol = "mortality2.2",
  observations = 0,
  scaling_factor = 1,
  years = 10,
  months = 6:9,
  iterations = 1000,
  toplot = FALSE
)

Arguments

outcomes

A data.frame of results from the shipstrike::gather_outcomes() function.

observations

The number of observed strike events during observation period.

scaling_factor

Deprecated – keep at 1.

years

Years of observation.

months

Months of effort during each year.

iterations

Number of iterations to use for randomization routine.

toplot

Produce plots?

Value

A named list including ggplot2 objects, as well as output printed to console.


ericmkeen/shipstrike documentation built on May 21, 2023, 7:05 a.m.