BF.circGLM: Obtain Bayes Factors or posterior odds from circGLM objects

View source: R/circGLMClassFunctions.R

BF.circGLMR Documentation

Obtain Bayes Factors or posterior odds from circGLM objects

Description

Extracts the Bayes Factors or posterior odds from a circGLM object.

Usage

BF.circGLM(m, prior_odds = 1, digits = 5)

Arguments

m

A circGLM object.

prior_odds

Numeric; If prior odds is 1, the default, the results are the Bayes factors. The priors odds can also be provided in order to return posterior odds directly, which are equal to the Bayes factor multiplied by the prior odds.

digits

Integer; The number of digits to display.

Value

A list of tables of Bayes Factors and posterior model probabilities, where applicable.

Examples

dat <- generateCircGLMData(truebeta = c(0, .2), truedelta = c(.4, .01))
m   <- circGLM(th ~ ., dat)
BF.circGLM(m)

dat <- generateCircGLMData(nconpred = 0)
m   <- circGLM(th ~ ., dat)
BF.circGLM(m)

dat <- generateCircGLMData(ncatpred = 0)
m   <- circGLM(th ~ ., dat)
BF.circGLM(m)


keesmulder/circglmbayes documentation built on July 24, 2022, 6:39 a.m.