[x] testthat for missing pO2 or temp data, including mi column in data
[x] Add optional prior on Eo (from Eric's email: add on TMB side and modify prior.R function to include the Eo prior (e.g. give it a separate name or something) (quick hack: just add dnorm() on Eo and recompile)
[x] Check if simulate_sdmTMB() is using MI-specific logistic function to simulate data when given data (o2 and invtemp) and logistic parameters e.g. threshold_coefs=c(x50, delta, beta3, Eo)
[ ] Add ability in simulate_sdmTMB() to use MI-specific logistic function when given MI as data (i.e. not internally calculating MI)
[x] Add ability to use predict() on model output (currently getting an R bomb)
dnorm()
on Eo and recompile)simulate_sdmTMB()
is using MI-specific logistic function to simulate data when given data (o2 and invtemp) and logistic parameters e.g.threshold_coefs=c(x50, delta, beta3, Eo)
simulate_sdmTMB()
to use MI-specific logistic function when given MI as data (i.e. not internally calculating MI)