-
-
Notifications
You must be signed in to change notification settings - Fork 36
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
improving summary output for BFBayesFactor
objects
#620
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I would personally vote for One row for estimate + effect size, if and only if we also make the behavior of So, for example, the following would return only Median + CI columns: BayesFactor::ttestBF(mtcars$wt, mu = 3) |>
parameters::model_parameters() While, this would return Median + CI and Cohen's d + CI columns: BayesFactor::ttestBF(mtcars$wt, mu = 3) |>
parameters::model_parameters(standardized_d = TRUE) |
Currently, we merge the results from |
This comment has been minimized.
This comment has been minimized.
What remains to be decided: |
I think we decided on columns, as we have for htests? |
Yes, that will work for t-tests, but the output from Contingency table analysis is an exception since it's not a one-row return: library(BayesFactor)
library(parameters)
data(raceDolls)
contingencyTableBF(raceDolls, sampleType = "indepMulti", fixedMargin = "cols") |>
parameters() |>
as.data.frame()
#> Warning: Could not estimate a good default ROPE range. Using 'c(-0.1, 0.1)'.
#> CI CI_low CI_high Parameter Median pd ROPE_Percentage
#> 1 0.95 0.23724792 0.3778516 cell[1,1] 0.3088749 1 0.00000000
#> 2 0.95 0.08060299 0.1836630 cell[2,1] 0.1331295 1 0.09129177
#> 3 0.95 0.23433029 0.3741541 cell[1,2] 0.2979956 1 0.00000000
#> 4 0.95 0.19290301 0.3234083 cell[2,2] 0.2563099 1 0.00000000
#> 5 NA NA NA Ratio NA NA NA
#> 6 0.95 0.02164193 0.3011174 <NA> NA NA NA
#> Prior_Distribution Prior_Location Prior_Scale BF Cramers_v
#> 1 <NA> NA NA 1.814856 NA
#> 2 <NA> NA NA 1.814856 NA
#> 3 <NA> NA NA 1.814856 NA
#> 4 <NA> NA NA 1.814856 NA
#> 5 independent multinomial 0 1 1.814856 NA
#> 6 <NA> NA NA NA 0.1621184
#> Method
#> 1 Bayesian contingency table analysis
#> 2 Bayesian contingency table analysis
#> 3 Bayesian contingency table analysis
#> 4 Bayesian contingency table analysis
#> 5 Bayesian contingency table analysis
#> 6 Bayesian contingency table analysis Compare it to htest return: library(parameters)
chisq.test(table(mtcars$am, mtcars$cyl)) |>
parameters(cramers_v = TRUE) |>
as.data.frame()
#> Warning in chisq.test(table(mtcars$am, mtcars$cyl)): Chi-squared approximation
#> may be incorrect
#> Chi2 df Cramers_v CI Cramers_CI_low Cramers_CI_high p
#> 1 8.740733 2 0.5226355 0.95 0.180431 1 0.01264661
#> Method
#> 1 Pearson's Chi-squared test Created on 2021-10-24 by the reprex package (v2.0.1) I am wondering if we should be returning only JASP also does the same: |
I think it's redundant to return the posterior cell proportions/counts from the |
(@IndrajeetPatil why do you |
Sorry 🙈
I think so, too! So if we decide to not return those rows, the output will be a one-row output, and it will be consistent with |
So from your example, that would be rows 5 and 6 that will be merged into one row, right? |
Exactly! When |
(The effect size isn't frequentists - it is based on the posteriors!) |
Can we please fix this soon? I haven't been able to work on my package for these two weeks because of this issue. The GitHub I am really looking forward to the |
don't include proportions by default #620 (comment)
Since the outputs have changed since then and this issue has got too murky, I am closing it in favor of the cleaner #630 issue. |
We should include the name of the frequentist effect size estimate in the
Parameter
column:For example:
current behavior
Created on 2021-10-20 by the reprex package (v2.0.1)
expected behavior
The same for output from contingency table analysis where we return Cramer's V, Phi, etc...
The text was updated successfully, but these errors were encountered: