cumulative_bayes_factor: Calculating cumulative Bayes factors

Description Usage Arguments Value Examples

Description

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.

Usage

1

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

1
2
# Calculate the cumulative Bayes factors
cumulative_results <- cumulative_bayes_factor(df = example_m0)

marton-balazs-kovacs/tppr documentation built on Oct. 27, 2021, 3:04 p.m.