| mvt_test | R Documentation | 
First step to performs a Bayesian multivariate one sample Student t test using the
(adjusted) fractional Bayes factor using the BF() function.
mvt_test(X, Y, null = NULL, paired = FALSE, ...)
| X | a data matrix with the variables in the columns. | 
| Y | an optional data matrix with the variables in the columns. | 
| null | a vector of the null values of the variables. | 
| paired | a logical indicating whether you want a multivariate paired t-test. | 
| ... | further arguments to be passed to or from methods. | 
X must be a data matrix and null
must be a vector of the assumed null values of the variables.
An object that can be applied to the BF().
Mulder, J. and Gu, X. (2023). Bayesian Testing of Scientific Expectations under Multivariate Normal Linear Models. Multivariate Behavioral Research, 57, 767-783. DOI: 10.1080/00273171.2021.1904809.
mvt_fmri <- mvt_test(fmri[,1:2],null = c(0,0))
BF(mvt_fmri)
# the same test can be executed via the lm() function
intercept <- rep(1,nrow(fmri))
lm1 <- lm(cbind(Face,Vehicle) ~ -1 + intercept, data=fmri)
BF(lm1,hypothesis="intercept_on_Face=intercept_on_Vehicle=0")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.