Description Usage Arguments Details Author(s) References Examples
This function employs the MWS method, based on the Pearson Type VI priors recommended by Maruyama (2009) and Wang and Sun (2014).
1 | bf_mws(F, df1, df2, report.as = "BF01", alpha = -0.5)
|
F |
the observed F statistic |
df1 |
the between-treatments degrees of freedom |
df2 |
the residual degrees of freedom |
report.as |
a string indicating whether to report Bayes factor as support for null ("BF01") or alternative ("BF10"). Defaults to "BF01" |
alpha |
hyperparameter for scale of Pearson Type VI prior. Wang and Sun recommend choosing alpha between -0.5 and 0. Defaults to -0.5, which provides asymptotic approximation to multivariate Cauchy prior. |
Minimally, the user must provide three inputs: F = the observed F statistic df1 = the "between-treatments" degrees of freedom df2 = the residual degrees of freedom
The function outputs the value of BF_01 by default, though this can be changed to BF_10 by the user (see below).
Additional options may be specified – see below
Thomas J. Faulkenberry <faulkenberry@tarleton.edu>
Maruyama, Y. (2009). A Bayes factor with reasonable model selection consistency for ANOVA model. arXiv preprint arXiv:0906.4329.
Wang, M., & Sun, X. (2014). Bayes Factor Consistency for One-way Random Effects Model. Communications in Statistics - Theory and Methods, 43(23), 5072–5090. doi:10.1080/03610926.2012.739252
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.