If predicting
we don't know some value of then We replace the missing data
by the expected value
defined as
This algorithm is used to "fill" the missing data only for the predicted factor
.
We replace missing values of the external factor
by the
nearest previous value, because we do not predict the external factors in this model.