easystats / bayestestR

:ghost: Utilities for analyzing Bayesian models and posterior distributions
https://easystats.github.io/bayestestR/
GNU General Public License v3.0
563 stars 55 forks source link

Support `{distributional}` package #674

Open mattansb opened 3 weeks ago

mattansb commented 3 weeks ago
library(bayestestR)
library(distributional)

xdist <- c(dist_normal(), dist_poisson(1))

p_direction(xdist, null = 1)
#> Probability of Direction
#> 
#> Parameter |     pd
#> ------------------
#> N(0, 1)   | 84.13%
#> Pois(1)   | 36.79%

2DO