Learn R Programming

dbarts (version 0.9-26)

dbartsData: 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)

Value

An object of class dbartData.

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.

See Also

dbarts