If cvfits[[k]] is not a list, then with this PR, objects omitted and projpred_k are appended as attributes (list elements would not work in such a case). Luckily, stanregs from rstanarm and brmsfits from brms are both lists, but in general, this was a quite restrictive assumption.
If
cvfits[[k]]
is not alist
, then with this PR, objectsomitted
andprojpred_k
are appended as attributes (list
elements would not work in such a case). Luckily,stanreg
s from rstanarm andbrmsfit
s from brms are bothlist
s, but in general, this was a quite restrictive assumption.