impute_predict_all: Use the models from 'impute_all' to impute the selected...

Description Usage Arguments Value

Description

Use the models from impute_all to impute the selected columns in data.

Usage

1
2
impute_predict_all(data, columns, na_function, models, included_columns,
  verbose = F)

Arguments

data

The new dataset, as a data.frame or data.table.

columns

the columns to impute.

na_function

Function which returns TRUE when a value is missing and FALSE otherwise.

models

The models generated by impute_all_models

included_columns

what columns should used as predictors? Can be integers, logicals or column names.

verbose

whether xgboost should print anything

Value

The same dataset as the imputed, but with NA values in the selected columns replaced by their estimated values.


jeroenvdhoven/datapiper documentation built on July 14, 2019, 9:34 p.m.