Open tmss1 opened 1 year ago
My guess is many of the simulated values give NA
or it is highly variable, which makes the lower value confidence interval not show or be reliable.
Depending on the model, it could be simulating values that are negative and then gives the bad values. If that is the case, you could try a log-normal distribution of residuals to see if this helps the VPC.
I'm unsure if this can be solved or not.
Thanks @mattfidler, As a follow up, the CIs are showing okay for a narrower prediction interval (e.g., 25th to 75th as attached), so it seems to support your suspicion that the simulated values are highly variable and some are too low or give NA values. The error model is only proportional so there should not be negative values.
@tmss1
Thanks @tynsci, Would you be able to start the investigation with some synthetic data first please as it may be difficult to share the data?
Describe the bug CI for lower percentile missing in VPC
To Reproduce
There are warning messages about NaN values:
Not sure if they are from the log-transformation of very small values, and if are causing the problem? Is it possible to check this and may exclude them for computation of CI?