Description Usage Arguments Value Methods (by generic) Examples
Posterior of the von Mises distribution.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | vm_posterior(th, prior = c(0, 0, 0), niter = 1000, ...)
## S3 method for class 'vm_posterior_mod'
print(x, digits = 3, ...)
## S3 method for class 'vm_posterior_mod'
coef(object, ...)
## S3 method for class 'vm_posterior_mod'
posterior_samples(object, ...)
## S3 method for class 'vm_posterior_mod'
marg_lik(x, method = "integrate", ...)
## S3 method for class 'vm_posterior_mod'
plot(x, ...)
|
th |
Circular observations, either |
prior |
Numeric of length 3. Prior parameters for conjugate prior of the von Mises distribution. The order is μ_0, R_0, c. |
niter |
Number of iterations to perform MCMC for. |
... |
Further arguments passed to |
Object of type vm_posterior_mod
.
print
: Print function.
coef
: Posterior summary of parameters.
posterior_samples
: Posterior samples (only model parameters, not derived).
marg_lik
: Compute marginal likelihood.
plot
: Plot function.
1 | vm_posterior(rvm(30, 2, 5))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.