bart.flex: Wrapper for flexible riBART calls

View source: R/bartflex.R

bart.flexR Documentation

Wrapper for flexible riBART calls

Description

A little internal piece of code that allows you to easily drop random intercepts in. It's a convenience tool I don't suggest using - it's a shortcut for if you feel very comfortable with the pipeline.

Usage

bart.flex(
  x.data,
  y.data,
  ri.data = NULL,
  y.name = NULL,
  ri.name = NULL,
  n.trees = 200
)

Arguments

x.data

A data frame of covariates

y.data

A vector of outcomes (1/0)

ri.data

Random intercept data (a column in a data frame)

y.name

Rename outcome variable from training data if you need to

ri.name

Identify the name of the random intercept column


cjcarlson/embarcadero documentation built on Sept. 9, 2023, 10:47 p.m.