Debugging residuals - Data2Dynamics/d2d GitHub Wiki

Quick info (detailed page has to be created)

Useful functions:

arPlotResiduals

arCollectRes(true,true): Then look at ar.resinfo

arDebugResidual

ar.res_type==1 indicates standard residuals data-model/SD, i.e. conicides with ar.model.data.res

ar.res_type==2 indicates 1/sqrt(2*sigma) residuals, i.e. conicides with ar.model.data.reserr

ar.res_type==3 indicates residuals originating from parameter priors

ar.res_type==4 indicates residuals from random effects