test_predict: Predict Test Data

Description Usage Arguments Value Examples

Description

Returns the predicted probability value and the actual outcome

Usage

1

Arguments

fit

A caret model

Value

A 'tibble' with two variables 1. The probability of the event and 2. the actual, observed outcome

Examples

1
2
3
4
data(pedis)
X_y <- prepare_X_y(pedis, outcome = "minor_amputation", var = c("p", "d"))
fit <- train_pedis(X = X_y$X, y = X_y$y)
test_predict(fit)

jnshsrs/PEDISdata documentation built on June 24, 2019, 12:07 p.m.