Description Usage Arguments Value Examples
Posterior of the Power or Inverse Batschelet distribution.
1 2 3 | bat_posterior(th, bat_type = "power", mu_logprior_fun = function(mu) 0,
kp_logprior_fun = function(kp) 0, lam_logprior_fun = function(lam) 0,
niter = 1000, ...)
|
th |
Circular observations, either |
bat_type |
Either 'inverse' or 'power', the type of distribution to fit. The two distributions are similar, but the power Batschelet distribution is computationally much less demanding. |
mu_logprior_fun |
Function; A function with a single argument, which returns the log of the prior probability of μ. Defaults to a uniform prior function. |
kp_logprior_fun |
Function; A function with a single argument, which returns the log of the prior probability of κ. Defaults to a uniform prior function. In contrast to the other parameters, for κ the constant (uniform) prior is improper. |
lam_logprior_fun |
Function; A function with a single argument, which returns the log of the prior probability of λ. Defaults to a uniform prior function. |
niter |
Number of iterations to perform MCMC for. |
... |
Further arguments passed to |
Object of type bat_posterior_mod
.
1 | bat_posterior(rvm(30, 2, 5))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.