fit_selectivity: Fitting models to empirical selectivity data

View source: R/fit_selectivity.R

fit_selectivityR Documentation

Fitting models to empirical selectivity data

Description

Fitting models to empirical selectivity data

Usage

fit_selectivity(
  object,
  pattern = 0,
  blocks = NULL,
  w = NULL,
  method = NULL,
  control = list(),
  FUN = NULL,
  ...
)

Arguments

object

An empirical selectivity object, extracted with the empirical_selectivity function.

pattern

Integer, the code for the selectivity model, as in SS.

blocks

Integer, with the maximum number of blocks to be fitted, or a vector with the year breaks for each block.

w

A vector of weights (one per year) or a character ('yield', 'Neff', 'Nsamp' or 'equal').

method

Method for creating the blocks, current available methods are 'equal' (equidistant placement) and 'cluster'.

control

A list with additional options for every method. See details.

FUN

Error function used for data fitting.

...

Additional arguments, not used currently.


roliveros-ramos/empirical.selectivity documentation built on Feb. 26, 2023, 4:58 a.m.