this next line includes the varying slopes for z
y~z+ bart(. - g) + (1 + z | g),
train = data,
test = data.test
)
```
stan4bart has been integrated into the bartCause package for ease of use producing estimates of a variety of causal estimands. However, they can be manually extracted in the following manner:

```
## CATE