These functions are required to run the Bayes factor analysis. The custom code is necessary because we use beta priors, and the BayesFactor package by default does not have built in beta priors. We thank Richard Morey for his help in developing these functions!

fullAlt_beta(p, y, N, alpha, beta)

normalize_beta(alpha, beta, interval)

restrictedAlt_beta(p, y, N, y_prior, N_prior, interval)

margLike_beta(y, N, y_prior, N_prior, interval)

BF01_beta(y, N, y_prior, N_prior, interval, null_prob)

Arguments

p

numeric, to be added

y

numeric, to be added

N

numeric, to be added

alpha

numeric, to be added

beta

numeric, to be added

interval

numeric, to be added

y_prior

numeric, to be added

N_prior

numeric, to be added