stan-dev / projpred

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

Error in case of non-predictor arguments of `s()` or `t2()` #393

Closed fweber144 closed 1 year ago

fweber144 commented 1 year ago

This is a follow-up for #269 (which was based on this comment and the discussion following it in issue #156). PR #269 was only concerned with documenting that in s() and t2() terms, arguments other than predictors are not allowed. Here, we also throw an appropriate error message. However, this still does not address #238 yet (but at least we now throw an appropriate error message).