dbartsData: Discrete Bayesian Additive Regression Trees Sampler Data

View source: R/data.R

dbartsDataR Documentation

Discrete Bayesian Additive Regression Trees Sampler Data

Description

Convenience function to create a data object for use with a dbarts sampler.

Usage

dbartsData(
    formula, data, test, subset, weights,
    offset, offset.test = offset)

Arguments

formula, data, test, subset, weights, offset, offset.test

As in dbarts. Retains backwards compatibility with bart, so that formula/data can be a formula/data.frame pair, or a pair of x.train/y.train matrices/vector.

Value

An object of class dbartData.

See Also

dbarts


dbarts documentation built on May 29, 2024, 3:31 a.m.