prepare_newdata_for_predict {mfp2} | R Documentation |
Helper function to prepare newdata for predict function
Description
To be used in predict.mfp2()
.
Usage
prepare_newdata_for_predict(
object,
newdata,
strata = NULL,
offset = NULL,
apply_pre = TRUE,
apply_center = TRUE,
check_binary = TRUE
)
Arguments
object |
fitted |
newdata |
dataset to be prepared for predictions. Its columns can be a subset of the columns used for fitting the model. |
strata , offset |
passed from |
apply_pre |
logical indicating wether the fitted pre-transformation is applied or not. |
apply_center |
logical indicating whether the fitted centers are applied after transformation or not. |
check_binary |
passed to |
Value
A dataframe of transformed newdata
[Package mfp2 version 1.0.0 Index]