bat_posterior: Posterior of the Power or Inverse Batschelet distribution.

Description Usage Arguments Value Examples

Description

Posterior of the Power or Inverse Batschelet distribution.

Usage

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, ...)

Arguments

th

Circular observations, either numeric in radians, or circular.

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 circglmbayes::fitbatmix.

Value

Object of type bat_posterior_mod.

Examples

1
bat_posterior(rvm(30, 2, 5))

keesmulder/circbayes documentation built on May 30, 2019, 2:04 p.m.