Computes the negative log-likelihood for observed parent-offspring pairings from genetic samples.
Arguments
- pop_switch
Integer flag for likelihood type: 0=off, 1=binomial, 2=beta-binomial.
- pop_obs
A
matrixof parent-offspring pairing observations.- paly
An
arrayof probability by length, age, and year.- phi_ya
A
matrixof reproductive output-at-age with dimensions year by age.- spawning_biomass_y
A
vectorof spawning biomass values indexed by year.- pop_od
Numeric positive concentration parameter for the beta-binomial likelihood (default = 50).
