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

Better emmeans outputs #672

Merged
merged 18 commits into from
Sep 4, 2024
Merged
6 changes: 4 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: bayestestR
Title: Understand and Describe Bayesian Models and Posterior Distributions
Version: 0.14.0.4
Version: 0.14.0.5
Authors@R:
c(person(given = "Dominique",
family = "Makowski",
Expand Down Expand Up @@ -66,7 +66,7 @@ Description: Provides utilities to describe posterior
Depends:
R (>= 3.6)
Imports:
insight (>= 0.20.1),
insight (>= 0.20.4.2),
datawizard (>= 0.10.0),
graphics,
methods,
Expand Down Expand Up @@ -95,6 +95,7 @@ Suggests:
lavaan,
lme4,
logspline (>= 2.1.21),
marginaleffects (>= 0.21.0),
MASS,
mclust,
mediation,
Expand Down Expand Up @@ -126,3 +127,4 @@ Config/testthat/parallel: true
Config/rcmdcheck/ignore-inconsequential-notes: true
Config/Needs/website: easystats/easystatstemplate
Config/Needs/check: stan-dev/cmdstanr
Remotes: easystats/insight
56 changes: 56 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -37,22 +37,28 @@ S3method(bayesfactor_models,stanreg)
S3method(bayesfactor_parameters,bayesfactor_models)
S3method(bayesfactor_parameters,blavaan)
S3method(bayesfactor_parameters,brmsfit)
S3method(bayesfactor_parameters,comparisons)
S3method(bayesfactor_parameters,data.frame)
S3method(bayesfactor_parameters,draws)
S3method(bayesfactor_parameters,emmGrid)
S3method(bayesfactor_parameters,emm_list)
S3method(bayesfactor_parameters,numeric)
S3method(bayesfactor_parameters,predictions)
S3method(bayesfactor_parameters,rvar)
S3method(bayesfactor_parameters,sim)
S3method(bayesfactor_parameters,sim.merMod)
S3method(bayesfactor_parameters,slopes)
S3method(bayesfactor_parameters,stanreg)
S3method(bayesfactor_restricted,blavaan)
S3method(bayesfactor_restricted,brmsfit)
S3method(bayesfactor_restricted,comparisons)
S3method(bayesfactor_restricted,data.frame)
S3method(bayesfactor_restricted,draws)
S3method(bayesfactor_restricted,emmGrid)
S3method(bayesfactor_restricted,emm_list)
S3method(bayesfactor_restricted,predictions)
S3method(bayesfactor_restricted,rvar)
S3method(bayesfactor_restricted,slopes)
S3method(bayesfactor_restricted,stanreg)
S3method(bci,BFBayesFactor)
S3method(bci,BGGM)
Expand All @@ -63,6 +69,7 @@ S3method(bci,bcplm)
S3method(bci,blavaan)
S3method(bci,blrm)
S3method(bci,brmsfit)
S3method(bci,comparisons)
S3method(bci,data.frame)
S3method(bci,draws)
S3method(bci,emmGrid)
Expand All @@ -71,9 +78,11 @@ S3method(bci,get_predicted)
S3method(bci,mcmc)
S3method(bci,mcmc.list)
S3method(bci,numeric)
S3method(bci,predictions)
S3method(bci,rvar)
S3method(bci,sim)
S3method(bci,sim.merMod)
S3method(bci,slopes)
S3method(bci,stanfit)
S3method(bci,stanreg)
S3method(check_prior,blavaan)
Expand All @@ -87,6 +96,7 @@ S3method(ci,bcplm)
S3method(ci,blavaan)
S3method(ci,blrm)
S3method(ci,brmsfit)
S3method(ci,comparisons)
S3method(ci,data.frame)
S3method(ci,draws)
S3method(ci,emmGrid)
Expand All @@ -95,9 +105,11 @@ S3method(ci,get_predicted)
S3method(ci,mcmc)
S3method(ci,mcmc.list)
S3method(ci,numeric)
S3method(ci,predictions)
S3method(ci,rvar)
S3method(ci,sim)
S3method(ci,sim.merMod)
S3method(ci,slopes)
S3method(ci,stanfit)
S3method(ci,stanreg)
S3method(cwi,data.frame)
Expand All @@ -110,6 +122,7 @@ S3method(describe_posterior,bcplm)
S3method(describe_posterior,blavaan)
S3method(describe_posterior,blrm)
S3method(describe_posterior,brmsfit)
S3method(describe_posterior,comparisons)
S3method(describe_posterior,data.frame)
S3method(describe_posterior,default)
S3method(describe_posterior,double)
Expand All @@ -121,9 +134,11 @@ S3method(describe_posterior,get_predicted)
S3method(describe_posterior,mcmc)
S3method(describe_posterior,mcmc.list)
S3method(describe_posterior,numeric)
S3method(describe_posterior,predictions)
S3method(describe_posterior,rvar)
S3method(describe_posterior,sim)
S3method(describe_posterior,sim.merMod)
S3method(describe_posterior,slopes)
S3method(describe_posterior,stanfit)
S3method(describe_posterior,stanmvreg)
S3method(describe_posterior,stanreg)
Expand Down Expand Up @@ -157,6 +172,7 @@ S3method(equivalence_test,bcplm)
S3method(equivalence_test,blavaan)
S3method(equivalence_test,blrm)
S3method(equivalence_test,brmsfit)
S3method(equivalence_test,comparisons)
S3method(equivalence_test,data.frame)
S3method(equivalence_test,default)
S3method(equivalence_test,draws)
Expand All @@ -165,9 +181,11 @@ S3method(equivalence_test,emm_list)
S3method(equivalence_test,mcmc)
S3method(equivalence_test,mcmc.list)
S3method(equivalence_test,numeric)
S3method(equivalence_test,predictions)
S3method(equivalence_test,rvar)
S3method(equivalence_test,sim)
S3method(equivalence_test,sim.merMod)
S3method(equivalence_test,slopes)
S3method(equivalence_test,stanfit)
S3method(equivalence_test,stanreg)
S3method(estimate_density,BGGM)
Expand All @@ -178,6 +196,7 @@ S3method(estimate_density,bcplm)
S3method(estimate_density,blavaan)
S3method(estimate_density,blrm)
S3method(estimate_density,brmsfit)
S3method(estimate_density,comparisons)
S3method(estimate_density,data.frame)
S3method(estimate_density,default)
S3method(estimate_density,double)
Expand All @@ -188,7 +207,9 @@ S3method(estimate_density,grouped_df)
S3method(estimate_density,mcmc)
S3method(estimate_density,mcmc.list)
S3method(estimate_density,numeric)
S3method(estimate_density,predictions)
S3method(estimate_density,rvar)
S3method(estimate_density,slopes)
S3method(estimate_density,stanfit)
S3method(estimate_density,stanreg)
S3method(eti,BFBayesFactor)
Expand All @@ -200,6 +221,7 @@ S3method(eti,bcplm)
S3method(eti,blavaan)
S3method(eti,blrm)
S3method(eti,brmsfit)
S3method(eti,comparisons)
S3method(eti,data.frame)
S3method(eti,default)
S3method(eti,draws)
Expand All @@ -209,9 +231,11 @@ S3method(eti,get_predicted)
S3method(eti,mcmc)
S3method(eti,mcmc.list)
S3method(eti,numeric)
S3method(eti,predictions)
S3method(eti,rvar)
S3method(eti,sim)
S3method(eti,sim.merMod)
S3method(eti,slopes)
S3method(eti,stanfit)
S3method(eti,stanreg)
S3method(format,bayesfactor_inclusion)
Expand Down Expand Up @@ -239,6 +263,7 @@ S3method(hdi,bcplm)
S3method(hdi,blavaan)
S3method(hdi,blrm)
S3method(hdi,brmsfit)
S3method(hdi,comparisons)
S3method(hdi,data.frame)
S3method(hdi,default)
S3method(hdi,draws)
Expand All @@ -248,9 +273,11 @@ S3method(hdi,get_predicted)
S3method(hdi,mcmc)
S3method(hdi,mcmc.list)
S3method(hdi,numeric)
S3method(hdi,predictions)
S3method(hdi,rvar)
S3method(hdi,sim)
S3method(hdi,sim.merMod)
S3method(hdi,slopes)
S3method(hdi,stanfit)
S3method(hdi,stanreg)
S3method(map_estimate,BGGM)
Expand All @@ -260,6 +287,7 @@ S3method(map_estimate,bcplm)
S3method(map_estimate,blavaan)
S3method(map_estimate,blrm)
S3method(map_estimate,brmsfit)
S3method(map_estimate,comparisons)
S3method(map_estimate,data.frame)
S3method(map_estimate,draws)
S3method(map_estimate,emmGrid)
Expand All @@ -268,7 +296,9 @@ S3method(map_estimate,get_predicted)
S3method(map_estimate,mcmc)
S3method(map_estimate,mcmc.list)
S3method(map_estimate,numeric)
S3method(map_estimate,predictions)
S3method(map_estimate,rvar)
S3method(map_estimate,slopes)
S3method(map_estimate,stanfit)
S3method(map_estimate,stanreg)
S3method(mcse,blavaan)
Expand All @@ -287,6 +317,7 @@ S3method(p_direction,bcplm)
S3method(p_direction,blavaan)
S3method(p_direction,blrm)
S3method(p_direction,brmsfit)
S3method(p_direction,comparisons)
S3method(p_direction,data.frame)
S3method(p_direction,default)
S3method(p_direction,draws)
Expand All @@ -297,9 +328,11 @@ S3method(p_direction,mcmc)
S3method(p_direction,mcmc.list)
S3method(p_direction,numeric)
S3method(p_direction,parameters_model)
S3method(p_direction,predictions)
S3method(p_direction,rvar)
S3method(p_direction,sim)
S3method(p_direction,sim.merMod)
S3method(p_direction,slopes)
S3method(p_direction,stanfit)
S3method(p_direction,stanreg)
S3method(p_map,BFBayesFactor)
Expand All @@ -311,6 +344,7 @@ S3method(p_map,bcplm)
S3method(p_map,blavaan)
S3method(p_map,blrm)
S3method(p_map,brmsfit)
S3method(p_map,comparisons)
S3method(p_map,data.frame)
S3method(p_map,draws)
S3method(p_map,emmGrid)
Expand All @@ -319,9 +353,11 @@ S3method(p_map,get_predicted)
S3method(p_map,mcmc)
S3method(p_map,mcmc.list)
S3method(p_map,numeric)
S3method(p_map,predictions)
S3method(p_map,rvar)
S3method(p_map,sim)
S3method(p_map,sim.merMod)
S3method(p_map,slopes)
S3method(p_map,stanfit)
S3method(p_map,stanreg)
S3method(p_rope,BFBayesFactor)
Expand All @@ -332,6 +368,7 @@ S3method(p_rope,bcplm)
S3method(p_rope,blavaan)
S3method(p_rope,blrm)
S3method(p_rope,brmsfit)
S3method(p_rope,comparisons)
S3method(p_rope,data.frame)
S3method(p_rope,default)
S3method(p_rope,draws)
Expand All @@ -340,9 +377,11 @@ S3method(p_rope,emm_list)
S3method(p_rope,mcmc)
S3method(p_rope,mcmc.list)
S3method(p_rope,numeric)
S3method(p_rope,predictions)
S3method(p_rope,rvar)
S3method(p_rope,sim)
S3method(p_rope,sim.merMod)
S3method(p_rope,slopes)
S3method(p_rope,stanfit)
S3method(p_rope,stanreg)
S3method(p_significance,BFBayesFactor)
Expand All @@ -354,6 +393,7 @@ S3method(p_significance,bcplm)
S3method(p_significance,blavaan)
S3method(p_significance,blrm)
S3method(p_significance,brmsfit)
S3method(p_significance,comparisons)
S3method(p_significance,data.frame)
S3method(p_significance,default)
S3method(p_significance,draws)
Expand All @@ -364,7 +404,9 @@ S3method(p_significance,mcmc)
S3method(p_significance,mcmc.list)
S3method(p_significance,numeric)
S3method(p_significance,parameters_simulate_model)
S3method(p_significance,predictions)
S3method(p_significance,rvar)
S3method(p_significance,slopes)
S3method(p_significance,stanfit)
S3method(p_significance,stanreg)
S3method(p_to_bf,default)
Expand Down Expand Up @@ -396,6 +438,7 @@ S3method(point_estimate,bcplm)
S3method(point_estimate,blavaan)
S3method(point_estimate,blrm)
S3method(point_estimate,brmsfit)
S3method(point_estimate,comparisons)
S3method(point_estimate,data.frame)
S3method(point_estimate,default)
S3method(point_estimate,draws)
Expand All @@ -406,9 +449,11 @@ S3method(point_estimate,matrix)
S3method(point_estimate,mcmc)
S3method(point_estimate,mcmc.list)
S3method(point_estimate,numeric)
S3method(point_estimate,predictions)
S3method(point_estimate,rvar)
S3method(point_estimate,sim)
S3method(point_estimate,sim.merMod)
S3method(point_estimate,slopes)
S3method(point_estimate,stanfit)
S3method(point_estimate,stanreg)
S3method(print,bayesfactor_inclusion)
Expand Down Expand Up @@ -469,6 +514,7 @@ S3method(rope,bcplm)
S3method(rope,blavaan)
S3method(rope,blrm)
S3method(rope,brmsfit)
S3method(rope,comparisons)
S3method(rope,data.frame)
S3method(rope,default)
S3method(rope,draws)
Expand All @@ -478,9 +524,11 @@ S3method(rope,get_predicted)
S3method(rope,mcmc)
S3method(rope,mcmc.list)
S3method(rope,numeric)
S3method(rope,predictions)
S3method(rope,rvar)
S3method(rope,sim)
S3method(rope,sim.merMod)
S3method(rope,slopes)
S3method(rope,stanfit)
S3method(rope,stanreg)
S3method(rope_range,data.frame)
Expand Down Expand Up @@ -512,13 +560,16 @@ S3method(sexit_thresholds,wbm)
S3method(sexit_thresholds,zeroinfl)
S3method(si,blavaan)
S3method(si,brmsfit)
S3method(si,comparisons)
S3method(si,data.frame)
S3method(si,draws)
S3method(si,emmGrid)
S3method(si,emm_list)
S3method(si,get_predicted)
S3method(si,numeric)
S3method(si,predictions)
S3method(si,rvar)
S3method(si,slopes)
S3method(si,stanfit)
S3method(si,stanreg)
S3method(simulate_prior,bcplm)
Expand All @@ -534,16 +585,21 @@ S3method(spi,bcplm)
S3method(spi,blavaan)
S3method(spi,blrm)
S3method(spi,brmsfit)
S3method(spi,comparisons)
S3method(spi,data.frame)
S3method(spi,default)
S3method(spi,draws)
S3method(spi,emmGrid)
S3method(spi,emm_list)
S3method(spi,get_predicted)
S3method(spi,mcmc)
S3method(spi,mcmc.list)
S3method(spi,numeric)
S3method(spi,predictions)
S3method(spi,rvar)
S3method(spi,sim)
S3method(spi,sim.merMod)
S3method(spi,slopes)
S3method(spi,stanfit)
S3method(spi,stanreg)
S3method(unupdate,blavaan)
Expand Down
5 changes: 5 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

## Changes

* Added support for `{marginaleffects}`

* Results from objects generated by `{emmeans}` (`emmGrid`/`emm_list`) now
return results with appended grid-data.

* Usability improvements for `p_direction()`:

- Results from `p_direction()` can directly be used in `pd_to_p()`.
Expand Down
Loading
Loading