stan-dev / projpred

Projection predictive variable selection
https://mc-stan.org/projpred/
Other
110 stars 25 forks source link

Don't require `cvfits[[k]]` to be a `list` #457

Closed fweber144 closed 1 year ago

fweber144 commented 1 year ago

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.