prepare_newdata_for_predict: Helper function to prepare newdata for predict function

View source: R/predict.mfp2.R

prepare_newdata_for_predictR 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 mfp2 model object.

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 predict.mfp2().

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 transform_vector_fp().

Value

A dataframe of transformed newdata


mfp2 documentation built on Nov. 15, 2023, 1:06 a.m.