Bt.test: Bayesian t-test using reference priors.

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/Bt.test.R

Description

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

Usage

1
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

1
2
3
4
data(bodytemp)
Bt.test(temperature ~ gender, bodytemp)

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

evidence documentation built on May 2, 2019, 2:14 p.m.