Computes the negative log-likelihood for observed parent-offspring pairings from genetic samples.
Arguments
- pop_switch
Integer flag for activation (currently unused).
- pop_obs
Matrix n,6: capture year, offspring year, adult age/length, type flag (0=age, 1=length), number of pairings, and number of comparisons.
- phi_ya
Matrix year, age of reproductive output-at-age.
- paly
Array length, age, year of predicted adult distributions at length.
- spawning_biomass_y
Vector of spawning biomass by year.