easystats

@easystats.github.io

Official channel of {easystats}, a collection of #rstats 📦s with a unifying and consistent framework for statistical modeling, visualization, and reporting. “Statistics are like sausages. It’s better not to see them being made, unless you use easystats.”

Big news from the #rstats #easystats universe! 🚀 We’ve just released updates for several of our packages to CRAN. Time for a quick highlight reel of the most important new features. 🧵 (1/4) You find the details on the related package websites (shown below), and on CRAN.

🚀 Big updates are here! A new round of #rstats #easystats releases is now live on CRAN, featuring major performance boosts and new features for parameters, bayestestR, performance, modelbased, and see. Update via CRAN or grab the latest dev versions with: `easystats::install_latest()`

Finally got around to removing broom::tidy(), broom::glance(), and broom::augment() from my class examples in favor of parameters::model_parameters(), performance::model_performance() and marginaleffects::predictions() because they're *so nice* for teaching! #rstats #easystats

Alrighty, {easystats} users! 👋 Ever wonder how those neat tables magically appear in your R console, or even better, in your fancy #rstats Markdown and Quarto docs? Well, most of the objects you work with in {easystats} are basically tables, i.e. a 2D matrix with columns and rows...

library(modelbased)
data(penguins)
model <- lm(body_mass ~ species * island, data = penguins)
out <- estimate_means(model, c("species", "island"))

# basic text output
out

# HTML in viewer pane, using the gt-package
display(out, format = "html")

# tinytable by defaults prints to the viewer pane, too,
# but we change the default to markdown for the console here
options(tinytable_print_output = "markdown")

# nice markdown output in the console, including colored text!
display(out, format = "tt", footer = "") |> 
  tinytable::style_tt(i = 1:3, color = "#cc0000") |> 
  tinytable::style_tt(i = 4:6, indent = 2, background = "#009900") |> 
  tinytable::theme_markdown(ansi = TRUE)

Okay, so you've crunched your numbers and got some awesome statistical models? Sometimes, just knowing "X predicts Y" isn't enough to really get to the juicy bits. That's where the cool post-hoc stuff comes in – think estimated marginal means, contrasts, pairwise comparisons, or #marginaleffects.