BARTr_train: BART model training workhourse

Description Usage Arguments Value

View source: R/BARTr_train.R

Description

This function proposes a move to a tree object and modifies the tree accrodingly.

Usage

1
2
BARTr_train(X, Rj, treej, p_modify, Tmin, rule, sigma2, tau, base, power,
  p_split, r)

Arguments

X, p_modify, Tmin, rule, base, power, p_split, r

as in ?BARTr

Rj

response for tree j

treej

jth tree object

sigma2

variance of random error

tau

normal prior variance of a leaf node in a tree

Value

alpha: acceptance ratio; move: 1=grow, 2=prune, 3=change; new_treej: modified tree object.


DongyueXie/bCART documentation built on Feb. 4, 2020, 12:26 a.m.