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)

Arguments

df

dataframe, the input dataframe

Value

The function returns a wide formatted dataframe with the number of trials, and the Bayes factors with the three different trials.

Examples

# \donttest{
# Calculate the cumulative Bayes factors
cumulative_results <- cumulative_bayes_factor(df = example_m0)
# }