sigma_sampler: An R6 class for sampling for sampling sigma^2

sigma_samplerR Documentation

An R6 class for sampling for sampling σ^2

Description

This class samples nuisance parameter which an inverse Gamma prior from the conditional posterior. Use the sigma_priors class for setup.

Format

An R6Class generator object

Public fields

sigma_prior

The current sigma_priors

curr_sigma

The current value of σ^2

Methods

Public methods


Method new()

Usage
sigma_sampler$new(sigma_prior)
Arguments
sigma_prior

The list returned by sigma_priors


Method sample()

Usage
sigma_sampler$sample(Y, mu)
Arguments
Y

The N by 1 matrix of responses

mu

The N by 1 matrix of means


estimateW documentation built on Dec. 6, 2022, 5:11 p.m.