The functionsimcoal.R:solve.A.mx() attempts a numerical solution of the ODE defined for the time differential of the A matrix, which represents the number of lineages per deme (columns) over coalescent (reverse) time (rows).
There seems to be a problem when one or more tips share the same sample height. In the following example, there are 10 tips (sampled lineages), of which 5 were sampled at height 0 and 5 were sampled at height 5.
The function
simcoal.R:solve.A.mx()
attempts a numerical solution of the ODE defined for the time differential of the A matrix, which represents the number of lineages per deme (columns) over coalescent (reverse) time (rows).There seems to be a problem when one or more tips share the same sample height. In the following example, there are 10 tips (sampled lineages), of which 5 were sampled at height 0 and 5 were sampled at height 5.
The numerical solution for A seems to make sense:
However, the
not.sampled.yet
function returns the following values on the same timeline:Something silly is happening at
h=0
. Thenot.sampled.yet
function results from the following linear interpolation: