This function calculates the cumulative Bayes factors
with three priors. The output of this function is used for
plot_confirmatory
as an input. The function
can accept a dataframe that is already only containing the
cumulative success variable cumulative_success
,
or a raw dataframe.
cumulative_bayes_factor(df)
dataframe, the input dataframe
The function returns a wide formatted dataframe with the number of trials, and the Bayes factors with the three different trials.
# \donttest{
# Calculate the cumulative Bayes factors
cumulative_results <- cumulative_bayes_factor(df = example_m0)
# }