R: Discrete Bayesian Additive Regression Trees Sampler Data

dbartsData {dbarts} | R 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`

[Package dbarts version 0.9-22 Index]