Clamp a predictor matrix by given valuesSource:
To limit extreme extrapolation it is possible to
an existing projection to the range of predictor values observed during model
training. This function takes an internal model matrix and restricts the
values seen in the predictor matrix to those observed during training.
data.frame with the clamped predictors.
This function is meant to be used within a certain