easystats

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.”

1K followers118 following117 posts

What does a sound data analysis workflow look like? In a first step: - Define your estimand (*quantity and unit of interest*) & research question - Map reality to your model (choose variables wisely) How the {modelbased}📦fits into this post-estimation workflow (second step): 👇 #rstats #easystats

View full thread

An estimand needs two things: your *quantity* and your *unit* (target population) of interest. In {modelbased}, you control this via the `estimate` argument to say who is your target population: • A specific individual (e.g. conditional) • An average across individuals (marginal/population)

What does a sound data analysis workflow look like? In a first step: - Define your estimand (*quantity and unit of interest*) & research question - Map reality to your model (choose variables wisely) How the {modelbased}📦fits into this post-estimation workflow (second step): 👇 #rstats #easystats

Regression coefficients rarely give direct answers - "holding variables constant" is tricky. {modelbased} delivers your actual *quantity* of interest directly: • Expected outcomes (predictions) → estimate_means() • Group comparisons → estimate_contrasts() • Effect sizes & trends → estimate_slopes()

A massive thank you to everyone who contributed to the #easystats project over the last few months! 🚀 Thanks to the amazing R community on GitHub, you've fixed plenty of bugs and rolled out exciting new features. We absolutely appreciate your support and collaboration! #rstats #OpenSource

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.

View full thread

{performance} brings powerful new tools for your model diagnostics: The new `check_priors()` function allows you to conduct prior predictive checks for Bayesian models, helping you better validate your model assumptions. 🔍 (3/4) easystats.github.io/performance/

easystats.github.ioAssessment of Regression Models PerformanceUtilities for computing measures to assess model quality, which are not directly provided by Rs base or stats' packages. These include e.g. measures like r-squared, intraclass correlation coefficient ...

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.

In {modelbased}, testing complex hypotheses is now even more flexible: `estimate_contrasts()` now supports `comparison = "omnibus"`, allowing you to easily calculate a global omnibus test for differences between levels of a predictor. 📊 (2/4) easystats.github.io/modelbased/

easystats.github.ioEstimation of Model-Based Predictions, Contrasts and MeansImplements a general interface for model-based estimations for a wide variety of models, used in the computation of marginal means, contrast analysis and predictions. For a list of supported models, s...

A truly great book! And we’re not just saying that because our #easystats packages are in it. Although, of course, that’s (a small) part of the reason why the book is so great. 😎

Prof Andy Field@profandyfield.com

Publication date looms ever closer ... physical copies exist (at the @sagepub.com London office, I await my own copy with excitement).

🚀 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()`

View full thread

🎨 {see} 0.14.0 levels up your visualizations! - New type = "graph" for factor analysis & PCA plots to map node/edge loadings - Brand new _halo() geoms (geom_point_halo(), etc.) to add sleek contours to points - Cleaned up smoother curves in outlier plots for small datasets

🚀 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()`

View full thread

📈 {performance} 0.17.0 makes model evaluation even smoother: - test_likelihoodratio() now includes a -2LL criterion column - check_predictions() for Bayesian models is standardized using {modelbased} under the hood - Expanded troubleshooting docs for check_model()

🧠 {modelbased} 0.15.0 expands your contrast analysis: - estimate_contrasts() can now calculate contrasts of average slopes (great for within/between context effects!) - Added support for nestedLogit models - Visual tweak: join_dots in plot() now defaults to FALSE

🚀 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()`

📊 {parameters} 0.29.1 is out! - Faster model_parameters() for large mgcv::gam() models (use re_test = FALSE) - Better handling of (Intercept) in post-hoc standardizations - Cluster argument in bootstrap_model() for parallel SNOW handling - Support for lavaan.mi & BSDA packages

🔮 {bayestestR} 0.18.1 brings better MCMC diagnostics! - diagnostic_posterior() now reports tail-ESS for more reliable credible intervals (pass "ESS_bulk" for bulk-ESS) - Works with raw MCMC samples - Expanded {cmdstanr} & {rstan} support - New matrix methods for Bayes factors

easystats - We Have the Best Vignettes™

Mattan S. Ben-Shachar@mattansb.msbstats.info

🚨NEW-ish VIGNETTE ALERT🚨 The Bayes factor vignette for {bayestestR} has been completely re-written! We've got all the BFs! - Marginal likelihoods - Model & posterior averaging - Order restrictions - Savage-Dickey density ratios AND MORE! Read it up, here: @easystats.github.io #Bayes #rstats

easystats reposted

🚨NEW-ish VIGNETTE ALERT🚨 The Bayes factor vignette for {bayestestR} has been completely re-written! We've got all the BFs! - Marginal likelihoods - Model & posterior averaging - Order restrictions - Savage-Dickey density ratios AND MORE! Read it up, here: @easystats.github.io #Bayes #rstats

This is such a great tutorial! If you run mixed models, learning how to tease apart state vs. trait differences is an absolute game-changer. Check out this guide from the #rstats #easystats {modelbased} package. 📊👇

Daniel 🕹️@strengejacke.de

🚀 New vignette: Uncover "Context Effects" in mixed models. Stop blending within- & between-person effects. Learn to demean variables and formally test state vs. trait differences side-by-side with the #RStats #easystats {modelbased}📦 easystats.github.io/modelbased/a...

easystats reposted

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

easystats reposted

{report} #rstats package version 0.6.2 is now on CRAN! MANY bug fixes in this version! Including corrected duplicated text outputs and dramatic speed increases for brmsfit models (which used to refit the model entirely every time). easystats.github.io/report/ With the @easystats.github.io team

easystats.github.ioAutomated Reporting of Results and Statistical ModelsThe aim of the report package is to bridge the gap between R’s output and the formatted results contained in your manuscript. This package converts statistical models and data frames into textual repo...

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...

View full thread

That "tt" option is now fully rolled out across several #easystats packages, powered by the amazing {tinytable} package. This means you can create tables in a gazillion different output formats! How cool is that? 🤯

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...

... and when they print, it's thanks to some behind-the-scenes magic with `insight::format_table()` and `insight::export_table()`! ✨ But there's more! Many #easystats functions also have a `display()` method. Think of it as your personal table stylist, making everything look super user-friendly! 💅

And you can totally control the vibe! Use the `format` argument to get "markdown" (for a classic kable look), "html" (for a sleek gt-table), or the new kid on the block, "tt" (for a tinytable masterpiece!).

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.

View full thread

Even if you're not tackling these super complex questions, {modelbased} is generally just a fantastic tool for really getting your head around your statistical models. Go on, take a peek! You might just fall in love: easystats.github.io/modelbased/ #rstats #easystats #marginaleffects #inference

easystats.github.ioEstimation of Model-Based Predictions, Contrasts and MeansImplements a general interface for model-based estimations for a wide variety of models, used in the computation of marginal means, contrast analysis and predictions. For a list of supported models, s...

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.

View full thread

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.

easystats reposted

I’m about halfway through this update (first 11 tutorials are done). I think they’re a lot better. Using a consistent @easystats.github.io workflow throughout will - I think - massively reduce the cognitive load for students. Looking forward to road testing in autumn term.

Prof Andy Field@profandyfield.com

Probably no-one except me uses my R tutorials in their teaching, but if you do, I'm re-writing them over the next 6-9 months. My goal is to streamline them based on 5 years of using them in class, but if you have (polite) requests/suggestsions let me have them. www.discovr.rocks/discovr/