Bt.test {evidence}R Documentation

Bayesian t-test using reference priors.

Description

The Bayesian “t-test” developed by Bernardo and Perez (2007) that calculates the Bayes-factor against the null hypothesis of no difference.

Usage

Bt.test(formula, data, plotit = TRUE)

Arguments

formula

the usual formula interface: response ~ factor

data

a data.frame with the response values and the factor values for all samples; the factor can only have two factor levels

plotit

is plotted output required?

Value

none supplied: the function is used for the plotted and printed output it produces

Author(s)

Robert van Hulst

References

J. Bernardo and S. Perez. Comparing normal means: New methods for an old problem. Bayesian Analysis, 2:45–58, 2007.

van Hulst, R. 2018. Evaluating Scientific Evidence. ms.

See Also

B2Nsir

t.test

Examples

data(bodytemp)
Bt.test(temperature ~ gender, bodytemp)

Bt.test(heart.rate ~ gender, bodytemp)

[Package evidence version 0.8.10 Index]