Skip to contents

Calculates the 2D AR1 prior for the selectivity.

Usage

get_selectivity_prior(rho_y, rho_a, log_sigma, par_log_sel_fya)

Arguments

rho_y

A numeric vector of temporal autocorrelation parameters (year dimension) for each fishery.

rho_a

A numeric vector of autocorrelation parameters (age dimension) for each fishery.

log_sigma

A numeric vector of log-scale parameters for the prior standard deviation for each fishery.

par_log_sel_fya

A list of matrices containing log-selectivity parameters by fishery, with dimensions (year, age).

Value

A numeric vector containing negative log-prior values for each fishery.