Learn R Programming

estimateW (version 0.1.0)

sigma_sampler: 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.

Arguments

Format

An R6Class generator object

Public fields

sigma_prior

The current sigma_priors

curr_sigma

The current value of \(\sigma^2\)

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