Description Usage Arguments Value Examples
Bayesian Model Averaging
1 |
object |
|
top |
number of models to average |
... |
currently ignored |
object of class melsm
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## Not run:
dat <- nlme::Orthodont
fit <- melsm(fixed_location = distance ~ age,
random_location = ~ age | Subject,
fixed_scale = sigma ~ 1, k = 3,
random_scale = ~ 1 | Subject,
adapt = 5000,
iter = 10000,
rho_test = "all",
mixture = "SSVS",
data = dat)
# Bayesian model averaging
bma(fit, top = 2)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.