You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
priors in bas.glm are objects, while in bas.lm character strings are used to refer to the prior, so the check to see if the prior is one of AIC or BIC in the coef function fails as it is comparing to object$prior which completes to object$priorprobs and the wrong length. No warning occurs if there is only a single model as when restricting the number of models.
merliseclyde
changed the title
chef throws an error for bas.glm objects if prior is AIC or BIC
coef throws warnings with bas.glm objects if prior is AIC or BIC
Nov 11, 2022
Describe the bug
priors in
bas.glm
are objects, while inbas.lm
character strings are used to refer to the prior, so the check to see if the prior is one of AIC or BIC in the coef function fails as it is comparing toobject$prior
which completes toobject$priorprobs
and the wrong length. No warning occurs if there is only a single model as when restricting the number of models.To Reproduce
Steps to reproduce the behavior:
Expected behavior
no warnings or errors
** Offending Code **
Starting line 126
and line 140
Desktop (please complete the following information):
Additional context
check if this impacts predictions too
The text was updated successfully, but these errors were encountered: