Skip to content

Commit

Permalink
Change conditions for message in IW
Browse files Browse the repository at this point in the history
  • Loading branch information
rsetienne committed Nov 20, 2024
1 parent 2d93c4d commit 35d2c43
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/DAISIE_loglik_IW.R
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,9 @@ DAISIE_loglik_IW <- function(
lxm <- min(lx,M + 1)
lxe <- lx

if(M * (1 - exp((min(brts) * gam))) > 0.2 * lxm) {
est_num_potential_colonizers <- min(1 + ceiling(Kprime), M * (1 - exp((min(brts) * gam))))

if(est_num_potential_colonizers > lxm) {
message('With this colonization rate and system size setting, results may not be accurate.')
}

Expand Down

0 comments on commit 35d2c43

Please sign in to comment.