Skip to contents

Calculate POP Likelihood (Version 1)

Usage

get_POP_like_v1(pop_switch, pop_obs, phi_ya, spawning_biomass_y)

Arguments

pop_switch

An integer scalar, switch to turn on (>0) or off (0) the POP likelihood.

pop_obs

A numeric matrix with columns: cohort, birth age, number of POPs, number of comparisons.

phi_ya

A numeric matrix of dimensions \[n_year + 1, n_age\], reproductive output-at-age.

spawning_biomass_y

A numeric vector of length n_year + 1, spawning biomass by year.

Value

A numeric vector of negative log-likelihood values for each POP observation.