Plots the acceptance rate of trees from a BART model.

acceptRate(trees)

Arguments

trees

A data frame created by extractTreeData function. Displays a division on the plot to separate prior and post burn-in iterations.

Value

A plot of acceptance rate.

Examples

if (FALSE) {
df_trees <- extractTreeData(model = my_model, data = my_data)
acceptRate(trees = df_trees)
}