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!
1 2 3 4 5 6 7 8 9 | 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)
|
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.