Learn R Programming

Rtwalk (version 2.0.0)

twalk_move: Run a single t-walk move (step)

Description

Selects one of the four kernels, generates a proposal, and calculates the Metropolis-Hastings acceptance probability.

Usage

twalk_move(
  n_dim,
  log_post_fun,
  support_fun,
  x,
  U,
  xp,
  Up,
  at = 6,
  aw = 1.5,
  p_phi = min(n_dim, 4)/n_dim,
  p_traverse = 0.4918,
  p_walk = 0.4918,
  p_blow = 0.0082,
  ...
)

Value

A list containing the proposal and the acceptance probability.

Arguments

...

Arguments passed to `log_post_fun` and `support_fun`.