When I re-run the North Atlantic mako shark assessment from last year with the version of JABBA currently on github, I got estimates of K more than an order of magnitude higher than they were last year with the exact same code and data. When I reinstalled JABBA from a commit in June 2025, I got the same results I got last year with a reasonable K. I think some of the scaling corrections added in the last few months introduced an error. This is the code.
cpueval.csv
catchval.csv
seval.csv
First run with current JABBA
devtools::load_all() #Current version 10 June 2026'
makoNSetup1<- build_jabba(catch=read.csv("catchval.csv"),
cpue=read.csv("cpueval.csv"),
se=read.csv("seval.csv"),
assessment="SMA2025",
scenario = "N1",
model.type = "Pella",
BmsyK = 0.597,
shape.CV=0.1,
add.catch.CV=TRUE,
catch.cv=0.1,
r.dist="lnorm",
r.prior=c(0.085,0.2),
K.dist="lnorm",
K.prior=c(100000,2),
psi.dist="lnorm",
psi.prior=c(1,0.2),
sigma.est = TRUE,
sets.var=1:8,
sigma.proc=sigma.proc.val,
proc.dev.all=FALSE,
sigmaobs_bound = 1,
sigmaproc_bound =0.1,
q_bounds=c(1E-10,1),
P_bound = c(0.02,1.1),
K_bounds=c(1000,5000000),
harvest.label = c("Hmsy", "Fmsy")[1]
)
makoNFit1<- fit_jabba( makoNSetup1,
quickmcmc = TRUE,
save.jabba = FALSE)
makoNFit1$estimates
mu lci uci
K 2425445.29109230 2224048.85093843 3103399.0609795
r 0.08447136 0.05803832 0.1238475
psi 0.93648575 0.74860548 1.0792224
sigma.proc 0.05000000 0.05000000 0.0500000
m 3.33500000 3.33500000 3.3350000
Hmsy 0.02500000 0.01700000 0.0370000
SBmsy 1447996.69100000 1327762.53000000 1852736.7280000
MSY 37298.13000000 24999.38300000 59826.1630000
bmsyk 0.59700000 0.59700000 0.5970000
P1950 0.93700000 0.74900000 1.0810000
P2023 0.96400000 0.79900000 1.1120000
B_Bmsy.cur 1.61400000 1.33800000 1.8630000
H_Hmsy.cur 0.02300000 0.01400000 0.0380000
Then used this code to load an older version
devtools::unload("JABBA")
# Find the SHA first via the GitHub API
commits <- jsonlite::fromJSON(
"https://api.github.com/repos/jabbamodel/JABBA/commits?until=2025-06-15T00:00:00Z&per_page=1"
)
sha <- commits$sha[1]
# Install that exact commit
remotes::install_github("jabbamodel/JABBA", ref = sha)
library(JABBA)
#And rerun the same code and got
makoNFit2<- fit_jabba( makoNSetup1,
quickmcmc = TRUE,
save.jabba = FALSE)
makoNFit2$estimates
K 106770.4462201 88444.70517875 120101.0458655
r 0.1079827 0.07913354 0.1468269
psi 0.9511395 0.63832500 1.1361556
sigma.proc 0.0500000 0.05000000 0.0500000
m 3.3350000 3.33500000 3.3350000
Hmsy 0.0320000 0.02400000 0.0440000
SBmsy 63742.2140000 52801.70200000 71700.6140000
MSY 2043.9860000 1483.01000000 2874.2510000
bmsyk 0.5970000 0.59700000 0.5970000
P1950 0.9520000 0.63700000 1.1370000
P2023 0.6990000 0.52100000 0.9420000
B_Bmsy.cur 1.1710000 0.87300000 1.5770000
H_Hmsy.cur 0.5820000 0.32500000 1.0330000
This is what we got last year.
Thanks
When I re-run the North Atlantic mako shark assessment from last year with the version of JABBA currently on github, I got estimates of K more than an order of magnitude higher than they were last year with the exact same code and data. When I reinstalled JABBA from a commit in June 2025, I got the same results I got last year with a reasonable K. I think some of the scaling corrections added in the last few months introduced an error. This is the code.
cpueval.csv
catchval.csv
seval.csv
First run with current JABBA
mu lci uci
K 2425445.29109230 2224048.85093843 3103399.0609795
r 0.08447136 0.05803832 0.1238475
psi 0.93648575 0.74860548 1.0792224
sigma.proc 0.05000000 0.05000000 0.0500000
m 3.33500000 3.33500000 3.3350000
Hmsy 0.02500000 0.01700000 0.0370000
SBmsy 1447996.69100000 1327762.53000000 1852736.7280000
MSY 37298.13000000 24999.38300000 59826.1630000
bmsyk 0.59700000 0.59700000 0.5970000
P1950 0.93700000 0.74900000 1.0810000
P2023 0.96400000 0.79900000 1.1120000
B_Bmsy.cur 1.61400000 1.33800000 1.8630000
H_Hmsy.cur 0.02300000 0.01400000 0.0380000
Then used this code to load an older version
K 106770.4462201 88444.70517875 120101.0458655
r 0.1079827 0.07913354 0.1468269
psi 0.9511395 0.63832500 1.1361556
sigma.proc 0.0500000 0.05000000 0.0500000
m 3.3350000 3.33500000 3.3350000
Hmsy 0.0320000 0.02400000 0.0440000
SBmsy 63742.2140000 52801.70200000 71700.6140000
MSY 2043.9860000 1483.01000000 2874.2510000
bmsyk 0.5970000 0.59700000 0.5970000
P1950 0.9520000 0.63700000 1.1370000
P2023 0.6990000 0.52100000 0.9420000
B_Bmsy.cur 1.1710000 0.87300000 1.5770000
H_Hmsy.cur 0.5820000 0.32500000 1.0330000
This is what we got last year.
Thanks