Skip to content

Commit

Permalink
Increase parameter bound to 1000 for large fish
Browse files Browse the repository at this point in the history
  • Loading branch information
quang-huynh committed Sep 7, 2023
1 parent ca0cbb4 commit 981c007
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/maturity.R
Original file line number Diff line number Diff line change
Expand Up @@ -633,9 +633,9 @@ extract_maturity_perc_re <- function(betas, random_intercepts, model) {
out
}

binomial_perc <- function(x, a, b, perc = 0.5, linkinv, ...) {
binomial_perc <- function(a, b, perc = 0.5, linkinv, ...) {
f <- function(x) linkinv(a + b * x) - perc
uniroot(f, interval = c(-100, 100))$root
uniroot(f, interval = c(-100, 1000))$root
}

mat_par_delta_method <- function(model, perc = 0.5) {
Expand Down

0 comments on commit 981c007

Please sign in to comment.