Skip to contents

Computes the likelihood contribution from an aerial index of abundance survey.

Usage

get_aerial_survey_like(
  aerial_switch,
  aerial_years,
  aerial_obs,
  aerial_cv,
  aerial_cov,
  par_aerial_tau,
  par_log_aerial_sel,
  number_ysa,
  weight_fya
)

Arguments

aerial_switch

Integer specifying the type of selectivity (0–4).

aerial_years

Vector of years corresponding to observations.

aerial_obs

Vector of observed aerial survey indices.

aerial_cv

Coefficients of variation for observations.

aerial_cov

Covariance matrix of observations.

par_aerial_tau

Observation error term.

par_log_aerial_sel

Vector of log selectivity parameters (for ages 2 and 4).

number_ysa

3D array year, season, age of numbers-at-age.

weight_fya

3D array fleet, year, age of weights-at-age.

Value

A list with predicted values, residuals, and log-likelihood components.