# NOT RUN {
# for reproducibility
set.seed(123)
library(tidyBF)
# ------------------ association tests --------------------------------
# to get dataframe
bf_contingency_tab(
data = mtcars,
x = am,
y = cyl,
output = "dataframe"
)
# ------------------ goodness of fit tests --------------------------------
# to get expression
bf_contingency_tab(
data = mtcars,
x = am,
prior.concentration = 10,
output = "expression"
)
# }
Run the code above in your browser using DataLab