sjstats::hdi has S3 methods for classes stanreg and brmsfit, but the default method also seems to work with BFmcmc class objects from BayesFactor package. But I am actually not sure what the HDI here represents and there is no documentation in this regard.
Here are two examples for completely different kinds of analyses: correlation and contingency tabs.
What do the results from sjstats::hdi here represent?
sjstats::hdi
hasS3
methods for classesstanreg
andbrmsfit
, but the default method also seems to work withBFmcmc
class objects fromBayesFactor
package. But I am actually not sure what the HDI here represents and there is no documentation in this regard.Here are two examples for completely different kinds of analyses: correlation and contingency tabs.
What do the results from
sjstats::hdi
here represent?Created on 2019-02-10 by the reprex package (v0.2.1)
Session info
``` r devtools::session_info() #> - Session info ---------------------------------------------------------- #> setting value #> version R Under development (unstable) (2018-11-30 r75724) #> os Windows 10 x64 #> system x86_64, mingw32 #> ui RTerm #> language (EN) #> collate English_United States.1252 #> ctype English_United States.1252 #> tz America/New_York #> date 2019-02-10 #> #> - Packages -------------------------------------------------------------- #> package * version date lib #> assertthat 0.2.0 2017-04-11 [1] #> backports 1.1.3 2018-12-14 [1] #> BayesFactor * 0.9.12-4.2 2018-05-19 [1] #> bayesplot 1.6.0 2018-08-02 [1] #> broom 0.5.1.9000 2019-01-20 [1] #> callr 3.1.1 2018-12-21 [1] #> cli 1.0.1.9000 2019-01-20 [1] #> coda * 0.19-2 2018-10-08 [1] #> codetools 0.2-16 2018-12-24 [1] #> coin 1.2-2 2017-11-28 [1] #> colorspace 1.4-0 2019-01-13 [1] #> crayon 1.3.4 2017-09-16 [1] #> data.table 1.12.0 2019-01-13 [1] #> desc 1.2.0 2019-01-21 [1] #> devtools 2.0.1.9000 2019-01-29 [1] #> digest 0.6.18 2018-10-10 [1] #> dplyr 0.8.0 2019-02-06 [1] #> emmeans 1.3.2 2019-01-22 [1] #> estimability 1.3 2018-02-11 [1] #> evaluate 0.12 2018-10-09 [1] #> forcats 0.3.0 2018-02-19 [1] #> fs 1.2.6 2018-08-23 [1] #> generics 0.0.2 2019-01-20 [1] #> ggplot2 3.1.0.9000 2019-02-06 [1] #> ggridges 0.5.1 2018-09-27 [1] #> glmmTMB 0.2.3 2019-01-11 [1] #> glue 1.3.0 2018-07-17 [1] #> gtable 0.2.0 2016-02-26 [1] #> gtools 3.8.1 2018-06-26 [1] #> haven 2.0.0 2018-11-22 [1] #> highr 0.7 2018-06-09 [1] #> hms 0.4.2 2018-03-10 [1] #> htmltools 0.3.6 2017-04-28 [1] #> knitr 1.21 2018-12-10 [1] #> lattice 0.20-38 2018-11-04 [2] #> lazyeval 0.2.1 2017-10-29 [1] #> lme4 1.1-20 2019-02-04 [1] #> magrittr 1.5 2014-11-22 [1] #> MASS 7.3-51.1 2018-11-01 [2] #> Matrix * 1.2-15 2018-11-01 [1] #> MatrixModels 0.4-1 2015-08-22 [1] #> memoise 1.1.0 2017-04-21 [1] #> minqa 1.2.4 2014-10-09 [1] #> modelr 0.1.3 2019-02-05 [1] #> modeltools 0.2-22 2018-07-16 [1] #> multcomp 1.4-8 2017-11-08 [1] #> munsell 0.5.0 2018-06-12 [1] #> mvtnorm 1.0-8 2018-05-31 [1] #> nlme 3.1-137 2018-04-07 [2] #> nloptr 1.2.1 2018-10-03 [1] #> pbapply 1.4-0 2019-02-05 [1] #> pillar 1.3.1 2018-12-15 [1] #> pkgbuild 1.0.2 2018-10-16 [1] #> pkgconfig 2.0.2 2018-08-16 [1] #> pkgload 1.0.2 2018-10-29 [1] #> plyr 1.8.4 2016-06-08 [1] #> prediction 0.3.6.2 2019-01-31 [1] #> prettyunits 1.0.2 2015-07-13 [1] #> processx 3.2.1 2018-12-05 [1] #> ps 1.3.0 2018-12-21 [1] #> purrr 0.3.0 2019-01-27 [1] #> pwr 1.2-2 2018-03-03 [1] #> R6 2.3.0 2018-10-04 [1] #> Rcpp 1.0.0 2018-11-07 [1] #> remotes 2.0.2 2018-10-30 [1] #> rlang 0.3.1 2019-01-08 [1] #> rmarkdown 1.11 2018-12-08 [1] #> rprojroot 1.3-2 2018-01-03 [1] #> sandwich 2.5-0 2018-08-17 [1] #> scales 1.0.0 2018-08-09 [1] #> sessioninfo 1.1.1 2018-11-05 [1] #> sjlabelled 1.0.16 2019-01-10 [1] #> sjmisc 2.7.7 2019-01-02 [1] #> sjstats 0.17.3.9000 2019-02-06 [1] #> snakecase 0.9.2 2018-08-14 [1] #> stringdist 0.9.5.1 2018-06-08 [1] #> stringi 1.2.4 2018-07-20 [1] #> stringr 1.4.0 2019-02-10 [1] #> survival 2.43-3 2018-11-26 [2] #> testthat 2.0.1 2018-10-13 [1] #> TH.data 1.0-10 2019-01-21 [1] #> tibble 2.0.1 2019-01-12 [1] #> tidyr 0.8.2 2018-10-28 [1] #> tidyselect 0.2.5 2018-10-11 [1] #> TMB 1.7.15 2018-11-09 [1] #> usethis 1.4.0.9000 2019-02-11 [1] #> withr 2.1.2 2018-03-15 [1] #> xfun 0.4 2018-10-23 [1] #> xtable 1.8-3 2018-08-29 [1] #> yaml 2.2.0 2018-07-25 [1] #> zoo 1.8-4 2018-09-19 [1] #> source #> CRAN (R 3.5.1) #> CRAN (R 3.6.0) #> CRAN (R 3.5.1) #> CRAN (R 3.5.1) #> Github (tidymodels/broom@66411c4) #> CRAN (R 3.6.0) #> Github (r-lib/cli@94e2fc5) #> CRAN (R 3.5.1) #> CRAN (R 3.5.2) #> CRAN (R 3.5.1) #> CRAN (R 3.6.0) #> CRAN (R 3.5.1) #> CRAN (R 3.6.0) #> Github (r-lib/desc@42b9578) #> Github (r-lib/devtools@e4e57aa) #> CRAN (R 3.5.1) #> Github (tidyverse/dplyr@cf0e282) #> CRAN (R 3.6.0) #> CRAN (R 3.5.0) #> CRAN (R 3.5.1) #> CRAN (R 3.5.1) #> CRAN (R 3.5.1) #> Github (r-lib/generics@d59e6b4) #> Github (tidyverse/ggplot2@140f27b) #> CRAN (R 3.5.1) #> CRAN (R 3.6.0) #> CRAN (R 3.5.1) #> CRAN (R 3.5.1) #> CRAN (R 3.5.0) #> CRAN (R 3.6.0) #> CRAN (R 3.5.1) #> CRAN (R 3.5.1) #> CRAN (R 3.5.1) #> CRAN (R 3.6.0) #> CRAN (R 3.6.0) #> CRAN (R 3.5.1) #> CRAN (R 3.6.0) #> CRAN (R 3.5.1) #> CRAN (R 3.6.0) #> CRAN (R 3.5.1) #> CRAN (R 3.5.1) #> CRAN (R 3.5.1) #> CRAN (R 3.5.1) #> CRAN (R 3.6.0) #> CRAN (R 3.5.1) #> CRAN (R 3.5.1) #> CRAN (R 3.5.1) #> CRAN (R 3.5.0) #> CRAN (R 3.6.0) #> CRAN (R 3.5.1) #> CRAN (R 3.6.0) #> CRAN (R 3.6.0) #> CRAN (R 3.5.1) #> CRAN (R 3.5.1) #> CRAN (R 3.6.0) #> CRAN (R 3.5.1) #> CRAN (R 3.6.0) #> CRAN (R 3.5.1) #> CRAN (R 3.6.0) #> CRAN (R 3.6.0) #> CRAN (R 3.5.2) #> CRAN (R 3.5.1) #> CRAN (R 3.5.1) #> CRAN (R 3.6.0) #> CRAN (R 3.6.0) #> CRAN (R 3.6.0) #> CRAN (R 3.6.0) #> CRAN (R 3.5.1) #> CRAN (R 3.5.1) #> CRAN (R 3.5.1) #> CRAN (R 3.6.0) #> CRAN (R 3.6.0) #> CRAN (R 3.6.0) #> Github (strengejacke/sjstats@cd5eec3) #> CRAN (R 3.5.1) #> CRAN (R 3.5.1) #> CRAN (R 3.6.0) #> CRAN (R 3.6.0) #> CRAN (R 3.6.0) #> CRAN (R 3.5.1) #> CRAN (R 3.5.2) #> CRAN (R 3.6.0) #> CRAN (R 3.6.0) #> CRAN (R 3.5.1) #> CRAN (R 3.6.0) #> Github (r-lib/usethis@8e3c151) #> CRAN (R 3.5.1) #> CRAN (R 3.6.0) #> CRAN (R 3.5.1) #> CRAN (R 3.5.1) #> CRAN (R 3.5.2) #> #> [1] C:/Users/inp099/Documents/R/win-library/3.6 #> [2] C:/Program Files/R/R-devel/library ```