To be used in predict.mfp2()
.
prepare_newdata_for_predict(
object,
newdata,
strata = NULL,
offset = NULL,
apply_pre = TRUE,
apply_center = TRUE,
check_binary = TRUE
)
A dataframe of transformed newdata
fitted mfp2
model object.
dataset to be prepared for predictions. Its columns can be a subset of the columns used for fitting the model.
passed from predict.mfp2()
.
logical indicating wether the fitted pre-transformation is applied or not.
logical indicating whether the fitted centers are applied after transformation or not.
passed to transform_vector_fp()
.