bart-internal: Developer functions for predictions via BART models

bart-internalR Documentation

Developer functions for predictions via BART models

Description

Developer functions for predictions via BART models

Usage

dbart_predict_calc(obj, new_data, type, level = 0.95, std_err = FALSE)

Arguments

obj

A parsnip object.

new_data

A rectangular data object, such as a data frame.

type

A single character value or NULL. Possible values are "numeric", "class", "prob", "conf_int", "pred_int", "quantile", "time", "hazard", "survival", or "raw". When NULL, predict() will choose an appropriate value based on the model's mode.

level

Confidence level.

std_err

Attach column for standard error of prediction or not.


topepo/parsnip documentation built on Feb. 18, 2025, 2:04 a.m.