Learn R Programming

bpnreg (version 2.0.3)

BFc.bpnr: Bayes Factors for a Bayesian circular regression model

Description

Outputs Bayes Factors for the circular differences between several levels of a categorical variable and the baseline.

Usage

# S3 method for bpnr
BFc(object, hypothesis, type = "anchor")

Value

Bayes Factors for inequality constrained hypotheses on mean differences.

Arguments

object

a bpnr object obtained from the function bpnr().

hypothesis

the inequality constrained hypothesis to test.

type

type of hypothesis to test c("anchor", "isotropic"). As of yet only anchor hypotheses can be tested.

Examples

Run this code
library(bpnreg)
fit.Motor <- bpnr(pred.I = Phaserad ~ 1 + Cond, data = Motor,
its = 100, burn = 10, n.lag = 3)
BFc(fit.Motor, hypothesis = "Condsemi.imp < Condimp")

Run the code above in your browser using DataLab