bfRobustness | R Documentation |
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)
bfRobustness(x = NULL, informed = TRUE, prior.loc = NULL, prior.r = NULL)
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. |
bfrInformed <- bfRobustness(seqbf)
bfrUninformed <- bfRobustness(seqbf, informed = FALSE)
print(bfrInformed)
plot(bfrInformed)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.