ratio_prune: Final ratio for a prune step

View source: R/prune_ratio.R

ratio_pruneR Documentation

Final ratio for a prune step

Description

The final ratio is to be used as the acceptance criteria in the MCMC of the b-cart model

Usage

ratio_prune(
  tree,
  old_tree,
  current_node,
  pars,
  nodes_to_prune,
  alpha_grow,
  beta_grow
)

Arguments

tree

The current tree

old_tree

The previous tree

current_node

The current pruned node

pars

The full list of parameters

nodes_to_prune

The node to prune from

alpha_grow

The alpha of the growing probability

beta_grow

The beta of the growing probability

Value

The final ratio for the candidate tree

Author(s)

Bruna Wundervald, brunadaviesw@gmail.com.


brunaw/hebart documentation built on June 1, 2022, 8:35 p.m.