You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In DAISIE_sim_cr_iw(), the number of species at present is incorrectly calculated when cond > 0 and replicates > 1.
The number of species at present is obtained by counting the number of lineages on the island with a stac other than 0.
This calculation is wrong when there are multiple replicates. With each new replicate the number of species at present corresponds to the sum of the species at present for replicate 1 with those simulated during replicate 2.
The bug lies in lines 33 to 35 of DAISIE_sim_cr_iw.R
In
DAISIE_sim_cr_iw()
, the number of species at present is incorrectly calculated whencond > 0
andreplicates > 1
.The number of species at present is obtained by counting the number of lineages on the island with a
stac
other than 0.This calculation is wrong when there are multiple replicates. With each new replicate the number of species at present corresponds to the sum of the species at present for replicate 1 with those simulated during replicate 2.
The bug lies in lines 33 to 35 of
DAISIE_sim_cr_iw.R
This should read:
The text was updated successfully, but these errors were encountered: