As converted to numeric the predictions end up being for the wrong level.
This is a serious pit fall.
In my opinion the function should map to the new levels (error if not possible) and then map back so user. This should also work for character vectors.
As converted to numeric the predictions end up being for the wrong level.
This is a serious pit fall.
In my opinion the function should map to the new levels (error if not possible) and then map back so user. This should also work for character vectors.