update_mu_PR: sample a_theta_one - hyperparameter (mean) for positive rates...

Description Usage Arguments Value See Also

View source: R/sample_mcmc.R

Description

Function to sample the parameters from a grid

Usage

1
update_mu_PR(theta_vec, s, a = 2, b = 1, show_density = TRUE)

Arguments

theta_vec

vector of positive rates that share a population mean

s

positive scalar; represents the current sampled value of pseudo-sample size

a, b

hyperparameter for Beta distribution over original a_theta_one.

show_density

Show the full conditional density given other unknown parameters; Default to FALSE

Value

an updated alpha_s value (positive)

See Also

update_pseudo_n_PR for examples.


zhenkewu/rewind documentation built on Sept. 9, 2020, 3:40 p.m.