bfRobustness: Robustness Analysis for Bayesian Sequential tests

View source: R/bayestest.R

bfRobustnessR Documentation

Robustness Analysis for Bayesian Sequential tests

Description

This function compares Bayes Factors of different priors. Returns a list containing BFMatrix, a data frame comprising the Bayes Factors of all possible combinations of the prior parameters (prior.location and prior.width)

Usage

bfRobustness(x = NULL, informed = TRUE, prior.loc = NULL, prior.r = NULL)

Arguments

x

A seqbf object created with bfttest(), bfbinom(), or bfcor()

informed

Logical. If you don't want to specify prior locations and scales manually, informed = FALSE will test multiple prior widths and location 0, while informed = TRUE will test different locations and widths.

prior.loc

Range of locations of the cauchy distributed prior function.

prior.r

Range of scales of the cauchy distributed prior function.

Examples

bfrInformed <- bfRobustness(seqbf) 
bfrUninformed <- bfRobustness(seqbf, informed = FALSE) 
print(bfrInformed)
plot(bfrInformed)

mrzdcmps/changeofevidence documentation built on Feb. 27, 2025, 3:10 a.m.