tidy_predict: tidy predict

View source: R/tidy_predict.R

tidy_predictR Documentation

tidy predict

Description

tidy predict

Usage

tidy_predict(
  model,
  newdata,
  form = NULL,
  olddata = NULL,
  bind_preds = FALSE,
  ...
)

## S3 method for class 'Rcpp_ENSEMBLE'
tidy_predict(model, newdata, form = NULL, ...)

## S3 method for class 'glm'
tidy_predict(model, newdata, form = NULL, ...)

## Default S3 method:
tidy_predict(model, newdata, form = NULL, ...)

## S3 method for class 'BinaryTree'
tidy_predict(model, newdata, form = NULL, ...)

## S3 method for class 'xgb.Booster'
tidy_predict(
  model,
  newdata,
  form = NULL,
  olddata = NULL,
  bind_preds = FALSE,
  ...
)

## S3 method for class 'lgb.Booster'
tidy_predict(
  model,
  newdata,
  form = NULL,
  olddata = NULL,
  bind_preds = FALSE,
  ...
)

Arguments

model

model

newdata

dataframe

form

the formula used for the model

olddata

training data set

bind_preds

set to TURE if newdata is a dataset without any labels, to bind the new and old data with the predictions under the original target name

...

other parameters to pass to predict

Value

dataframe


autostats documentation built on Nov. 10, 2022, 6:13 p.m.