vm_posterior: Posterior of the von Mises distribution.

Description Usage Arguments Value Methods (by generic) Examples

Description

Posterior of the von Mises distribution.

Usage

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

Arguments

th

Circular observations, either numeric in radians, or circular.

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

Value

Object of type vm_posterior_mod.

Methods (by generic)

Examples

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

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