Description Usage Arguments Value Examples
The use can set the sampler to either (1) 'Gibbs' (default for all coefficients) or (2) 'MH' (metropolis-hastings algorithm, only for coefficients).
1 | set_sampler(x, ...)
|
x |
a blm object |
par |
name of the coefficient, given as b0 (intercept) or b1, ... for coefficients. |
type |
name of the sampler to use. Either 'Gibbs' or 'MH'. Defaults to 'Gibbs'. |
lambda |
tuning parameter for the variance of the proposal distribution in metropolis-hastings |
updated blm object
1 | bfit <- set_sampler(bfit, "b0", type="MH")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.