This class samples nuisance parameter which an inverse Gamma prior from the conditional posterior. Use the sigma_priors class for setup.
An R6Class generator object
sigma_priorThe current sigma_priors
curr_sigmaThe current value of \(\sigma^2\)
new()sigma_sampler$new(sigma_prior)sigma_priorThe list returned by sigma_priors
sample()sigma_sampler$sample(Y, mu)YThe \(N\) by \(1\) matrix of responses
muThe \(N\) by \(1\) matrix of means