package renamed from ef to ef2 so it can be installed alongside ef 1.x; fitted models now have class efp2
models are fitted with nlminb() rather than optim() (BFGS), which falsely converged on some platforms; control is passed to nlminb()
the likelihood is computed on the log scale, so it stays finite when capture probabilities are close to 0 or 1
efp() is renamed efp2(), so ef and ef2 can be attached together
remove logit(), invlogit() and transpar(), use qlogis() and plogis() from stats instead
as.gam() is renamed as.gam2() and ef_data is renamed ef2_data, so no names clash with ef
fix the choice of coefficients removed for the null space of a smooth, which could give a singular penalty and NaN likelihood on macOS
when standard errors cannot be computed, efp2() warns which parameters are affected, instead of “NaNs produced”
new capture_prob() and abundance() give the cumulative capture probability, abundance and density of each sample with confidence intervals, optionally summed over groups of samples with by; the cumulative capture probability is also reported in $P
abundance(target = "expected") gives confidence intervals for the expected abundance, when the number of fish present is Poisson