Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

don't return posterior cell proportions/count for Bayesian contingency table #486

Open
IndrajeetPatil opened this issue Nov 7, 2021 · 1 comment
Labels
Consistency 🍏 🍎 Expected output across functions could be more similar

Comments

@IndrajeetPatil
Copy link
Member

Either we just remove it, or we add an argument to oprtionally include it:

cf. easystats/parameters#620 (comment)

library(BayesFactor)
library(bayestestR)
data(raceDolls)

contingencyTableBF(raceDolls, sampleType = "indepMulti", fixedMargin = "cols") |>
  describe_posterior()
#> Warning: Could not estimate a good default ROPE range. Using 'c(-0.1, 0.1)'.
#> Summary of Posterior Distribution
#> 
#> Parameter | Median |       95% CI |   pd |          ROPE | % in ROPE |   BF |                            Prior
#> --------------------------------------------------------------------------------------------------------------
#> cell[1,1] |   0.31 | [0.24, 0.38] | 100% | [-0.10, 0.10] |        0% | 1.81 |                                 
#> cell[2,1] |   0.13 | [0.08, 0.19] | 100% | [-0.10, 0.10] |     8.37% | 1.81 |                                 
#> cell[1,2] |   0.30 | [0.23, 0.37] | 100% | [-0.10, 0.10] |        0% | 1.81 |                                 
#> cell[2,2] |   0.26 | [0.19, 0.32] | 100% | [-0.10, 0.10] |        0% | 1.81 |                                 
#> Ratio     |        |              |      |               |           |      | Independent multinomial (0 +- 1)

Created on 2021-11-07 by the reprex package (v2.0.1)

@IndrajeetPatil IndrajeetPatil added the Consistency 🍏 🍎 Expected output across functions could be more similar label Nov 7, 2021
@mattansb
Copy link
Member

Shouldn't this be in insight?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Consistency 🍏 🍎 Expected output across functions could be more similar
Projects
None yet
Development

No branches or pull requests

2 participants