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

Description Usage Arguments Value Examples

View source: R/circGLMClassFunctions.R

Description

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

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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)

circglmbayes documentation built on Jan. 22, 2021, 5:09 p.m.