Closed akhileshtayade closed 10 months ago
Hello akhileshtayade,
basically, the observed data (simulated and real observed data) is summarised per group according to the function that is provided (default = sum) in , and then the quantile residual is calculated as for a single data point (which is described in the vignette).
Does that help?
Best F
Yes, that helped! Thank you very much for a super quick response!
I also checked this commit and the code of the function recalculateResiduals
which also helped in resolving the doubt. Thank you again!
Hello!
I have been unable to understand how DHARMa generates scaled residuals when
recalculateResiduals
is used with argumentgroup
.Here is a minimal, reproducible example (output not shown) to describe what I am having trouble with:
However, I did not understand how the
scaledResiduals
are calculated for thegroupedSimulationOutput
: how aregroupedSimulationOutput$scaledResiduals
calculated fromsimulationOutput$scaledResiduals
? I hope I am not missing something obvious.