Skip to contents

Calculates robust station DE characteristics using the top percentile of DE values for each station and temporal group. This provides a more stable estimate of station capability than using mean or max values.

Usage

calculate_station_de_characteristics(
  detection_probs,
  percentile_cutoff = 0.95,
  temporal_grouping = "day",
  time_aggregation = "seconds"
)

Arguments

detection_probs

Data frame containing detection probabilities with columns for station_id, DE_pred, and time_period

percentile_cutoff

Numeric between 0 and 1. The percentile cutoff for calculating robust station DE (default 0.95 for top 95% of values)

temporal_grouping

Character. How to group temporally: "day", "hour", or "none"

time_aggregation

Character. The time aggregation method being used ("seconds", "hour", "day", "month")

Value

Data frame with station characteristics including effective DE by temporal group