DR-BART Implementation

variance = 'ux':
  SCALE_MIX = TRUE
variance = 'x':
  SCALE_MIX = FALSE

 

std::vector<vec_d> xinfo;

xi : cutpoints mean
xiprec : cutpoints prec

  Each element in the vector represents a variable.
  Each variable has cutpoints

di : data info
contains the x data and also the y data


pinfo pi: Contains MCMC action probabilities

pbd : prob of birth / death
pd : prob of birth given birth / death

getpb : get probability of birth for a tree
  returns 0 when there is no bottom node to split on
  returns 1 when the tree is empty
  else returns 0.5

 

Mean trees:

bdhet : birth-death heteroscedastic

drmuhet : draw mu heteroscedastic (model)

 

Precision trees:

bdprec:

 

drphi:

 

image.png

 


image.png

image.png

 

image.png


Revision #3
Created 4 June 2025 06:11:46 by Admin
Updated 4 June 2025 16:06:55 by Admin