Description
brms::pp_check(type = "error_scatter_avg_vs_x")
, which calls bayesplot::ppc_error_scatter_avg_vs_x
, has residuals that vary wildly from one run to the next when the noise distribution (family
) is a Student nu
(aka df
).
I suspect the problem is caused by the "average" being computed as the mean, which gets wildly distorted by outliers generated by the kurtotic noise distribution. I suspect the problem would be greatly ameliorated if the average could instead be computed as the median. But there seems to be no option for this, while some of the brms
functions do have an argument robust = TRUE
.
The linked HTML (and .Rmd) file has two examples, identical to each other except the first example uses data from a highly kurtotic
HTML: https://drive.google.com/file/d/1aGwO9i7RuXQoVVzkHkV4wC02uqKs43ys/view?usp=drive_link
.Rmd: https://drive.google.com/file/d/1ksRr_2VOgMornK3s_Dk5sA0xoKPOywRA/view?usp=drive_link