Skip to contents

Computes CPUE as the ratio of total catch to total fishing hours per H3 cell for each of the top-N species: `CPUE_h = sum(catch_kg for trips visiting h) / sum(fishing_hours in h)`. Robust with sparse data; always produces a result.

Usage

run_weighted_cpue(trips, top_n, min_trips)

Arguments

trips

Combined effort + catch tibble from [join_effort_catch()].

top_n

Integer. Number of top species to model.

min_trips

Integer. Minimum unique trips per H3 cell to retain.

Value

A named list with elements `cpue` (tibble) and `species` (character vector).