Description Usage Arguments Value Methods (by generic) Examples
Print function for Bayesian hypothesis testing.
Bayesian hypothesis tests from marginal likelihoods.
1 2 3 4 | ## S3 method for class 'bht_comparison'
print(x, digits = 3, ...)
bht_compare(...)
|
x |
Object of type |
digits |
Number of digits to print. |
... |
(Named) list of models. |
Object of type 'bht_comparison'
.
print
: Print method.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | th <- rvm(100, 3, .2)
vm_mod <- vm_posterior(th, prior = c(0, 0, 1))
cu_ml <- marg_lik_circ_unif(th)
vm_ml <- marg_lik(vm_mod)
bht_compare(uniform = cu_ml, von_mises = vm_ml)
# Test circular uniformity versus von mises.
th <- rvm(30, 0, 1)
vm_mod <- vm_posterior(th)
bht_compare(uniform = marg_lik_circ_unif(th),
vonmises = marg_lik(vm_mod))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.