| beta_sampler {estimateW} | R Documentation |
An R6 class for sampling slope parameters
Description
This class samples slope parameters with a Gaussian prior from the conditional posterior. Use the beta_priors class for setup.
Format
An R6Class generator object
Public fields
beta_priorThe current
beta_priorscurr_betaThe current value of
\beta
Methods
Public methods
Method new()
Usage
beta_sampler$new(beta_prior)
Arguments
beta_priorThe list returned by
beta_priors
Method sample()
Usage
beta_sampler$sample(Y, X, curr_sigma)
Arguments
YThe
Nby1matrix of responsesXThe
Nbykdesign matrixcurr_sigmaThe variance parameter
\sigma^2
[Package estimateW version 0.0.1 Index]