Skip to contents

Fits distributions to predator/prey body-mass ratios observed in stomach contents and converts supported distributions to feeding-kernel parameters for mizer size-spectrum models.

Details

The package works with \(l=\log(w_{pred}/w_{prey})\). A typical workflow is to:

  1. standardize observations with validate_ppmr_data();

  2. inspect their dependence on predator size with plot_ppmr_violins();

  3. fit normal, smoothly truncated-exponential, or Gaussian-mixture densities with fit_log_ppmr();

  4. diagnose number- and biomass-weighted fits with plot_log_ppmr_fit(); and

  5. transfer a fitted distribution to a mizer model with set_kernel_params().

Fit objects retain the exponent of prey mass used as an observation weight. transform_fit() uses family-specific parameter updates to express a fit at another weighting without fitting the raw observations again.

Vignettes

Read the package articles in this order: