flr / FLa4a

The repository for the JRC initiative on stock assessment
https://fishreg.jrc.ec.europa.eu/web/a4a
12 stars 6 forks source link

S/R models in admb - why is the previous year ssb being used ? #52

Closed ejardim closed 8 years ago

ejardim commented 10 years ago

Why is the fit being done on the previous year ssb ?

ejardim commented 8 years ago

Fixed. It uses the matching yearclass with, for example in bevholt if (Rmodel == 1) { // beverton holt for(int y=minYear+minAge; y<=maxYear; ++y){ predLogR = ra(y) + log(ssb(y-minAge)) - log(mfexp(rb(y)) + ssb(y-minAge)); varLogR = log(pow(srCV,2)+1); nll += nldnorm(r(y), predLogR, varLogR);
} }