epinowcast / primarycensored

Primary event censored distributions in R and Stan.
https://primarycensored.epinowcast.org/
Other
7 stars 1 forks source link

Investigate the sporadic NANs in the stan analytical solutions (all dists) when the cdf is 1 #129

Open seabbs opened 4 days ago

seabbs commented 4 days ago

Originally posted by @seabbs in https://github.com/epinowcast/primarycensoreddist/issues/109#issuecomment-2402157878

When we test the analytical solutions in stan against their R equivalents we sometimes see NANs in the stan output that are 1 in the R output. This indicates some kind of overflow or boundary issue to me.

https://github.com/epinowcast/primarycensored/blob/main/tests/testthat/test-stan-primarycensored_analytical_cdf.R

So far we have seen no evidence of this being an issue when fitting models indicating it might be related to our testing setup pushing towards extreme edge cases but regardless this needs investigation.