Shiny App

Functions to use the shiny app

run_app()

Run the Shiny Application

Data

Datasets in the package

analysis_params

Preset parameters for the analysis

example_m0

Example dataset with support for M0

example_m1

Example dataset with support for M1

Read data

Functions to read, generate or clean datasets

read_data()

Function to read and merge data

clean_data()

Function to extracts erotic trials

split_data()

Function to split data according to stopping points

get_links()

Get datafile download links from a Github folder

generate_example_data()

Generate example data

generate_session()

Generate example session

cumulative_success()

Calculating cumulative success

Analysis

Functions to analyse the data

analysis_confirmatory()

Primary confirmatory analysis

confirmatory_bayes_factor()

Primary analysis: Bayes factors analysis

confirmatory_mixed_effect()

Primary analysis: Mixed-effects logistic regression

analysis_robustness()

Robustness analysis

robustness_bf_analysis()

Robustness test of Bf results with Bayesian parameter estimation

robustness_nhst_analysis()

Robustness test of Bf results with NHST

analysis_exploratory()

Exploratory analysis

cumulative_bayes_factor()

Calculating cumulative Bayes factors

Visualization

Functions to visualize the results of the analysis

plot_confirmatory()

Plotting the results of the primary confirmatory analysis

plot_robustness()

Plotting the results of the robustness analysis

plot_exploratory()

Plotting the results of the exploratory analysis

Descriptives

Functions to get descriptive information about the data

tell_checkpoint()

Function to return checkpoint information

sample_descriptives()

Sample and study characteristics

sample_descriptives_current()

Current descriptive

Helpers

Not-standalone functions that are used in the analysis

logit2prob()

Convert logit to probability

mode_HDI()

Function calculating the highest density interval using sampling

smoothie()

Function to fit smoothing spline

Inferences

Functions to draw inferences based on the results

inference_confirmatory_bf()

Inference for Bayesian proportion tests

inference_confirmatory_mixed_effect()

Inference for mixed effect test

inference_confirmatory_combined()

Inference for the confirmatory analysis

inference_robustness_nhst()

Inference for robustness test using NHST

inference_robustness_combined()

Inference for robustness analysis

inference_robustness_bf()

Inference for robustness test using Bayesian parameter estimation

Bayes factor calculation

Functions to calculate Bayes factors

fullAlt_beta() normalize_beta() restrictedAlt_beta() margLike_beta() BF01_beta()

Functions for Bayes factor calculation using beta prior

App helpers

Non-standalone functions used in the app

text_helper_current_general() text_helper_current_confirmatory() text_helper_current_robustness() text_helper_checkpoint_general() text_helper_checkpoint_confirmatory() text_helper_stop() text_helper_warning()

Text helper functions