View source: R/circGLMClassFunctions.R
BF.circGLM | R Documentation |
Extracts the Bayes Factors or posterior odds from a circGLM
object.
BF.circGLM(m, prior_odds = 1, digits = 5)
m |
A |
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. |
A list of tables of Bayes Factors and posterior model probabilities, where applicable.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.