Convenience function to create a data object for use with a dbarts
sampler.
dbartsData(
formula, data, test, subset, weights,
offset, offset.test = offset)
An object of class dbartData
.
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.
dbarts