Skip to content
Prev 201555 / 398506 Next

predict: remove columns with new levels automatically

Andreas Wittmann wrote:
If I understand correctly, you want to build a model that
includes at least one factor predictor (say xf with k levels).
Then you want to use this model to predict a response value
when xf takes a _new_ level about which the model knows
nothing. That doesn't make sense to me, so I doubt that
it's a common problem. Introducing a new level for a factor
variable is just like introducing a new variable.

  -Peter Ehlers