sample_parameters: sample_parameters

View source: R/posteriors.R

sample_parametersR Documentation

sample_parameters

Description

sample_parameters

Usage

sample_parameters(
  type = "tau",
  P = P,
  i = i,
  N = NULL,
  beta = NULL,
  alpha = NULL,
  current_tree_post = NULL,
  k1 = NULL,
  k2 = NULL,
  tau_post,
  J = NULL,
  mu_post = NULL
)

Arguments

type

The type of parameter to be sampled ("tau", "mu" or "muj")

P

The number of trees

i

The current iteration number

N

The size of the data

beta

A parameter from the tau prior

alpha

A parameter from the tau prior

current_tree_post

The current trees object

k1

The current value of the k1 parameter

k2

The current value of the k2 parameter

tau_post

The current value of the posterior tau

J

The number of groups

mu_post

The current set of mu posterior values


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