beta_sampler | R Documentation |
This class samples slope parameters with a Gaussian prior from the conditional posterior. Use the beta_priors class for setup.
An R6Class
generator object
beta_prior
The current beta_priors
curr_beta
The current value of β
new()
beta_sampler$new(beta_prior)
beta_prior
The list returned by beta_priors
sample()
beta_sampler$sample(Y, X, curr_sigma)
Y
The N by 1 matrix of responses
X
The N by k design matrix
curr_sigma
The variance parameter σ^2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.