Open ParadaCarleton opened 2 years ago
Yeah the signature of glm
should be made stricter, to match that of fit
. Would you make a PR?
Having a method that throws an error if a type is passed rather than an instance for the distribution could make sense. We could almost allow passing either...
The error here was caused by forgetting to add a distribution. However, it might not be immediately clear to a user that the problem is a missing argument for
glm
(notfit
). We could improve this by throwing an error sayingglm
requires a distribution.Passing a type rather than a distribution caused the error here, but this is also not clear for a new user.