sigma_sampler {estimateW}R Documentation

An R6 class for sampling for sampling \sigma^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 \sigma^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


[Package estimateW version 0.0.1 Index]