Vincent Arel-Bundock's Avatar

Vincent Arel-Bundock

@vincentab.bsky.social

Prof. Most tweets about R. “Polisci, it’s all about what’s going on.” http://arelbundock.com

6,188 Followers  |  1,354 Following  |  914 Posts  |  Joined: 28.05.2023  |  2.225

Latest posts by vincentab.bsky.social on Bluesky

Oh yeah, totally. Thing is that this is not really a "mistake" per se. These are just targeting different estimands. The mistake is not being clear enough about our research question and the quantity that might answer it.

04.12.2025 15:03 — 👍 0    🔁 0    💬 1    📌 0

The syntax can be confusing at first, but the nice thing about having both options at finger tips is that it surfaces the (sometimes) important distinction between two quantities. Most authors used to print *something* without telling readers what actual quantity they reported.

04.12.2025 13:16 — 👍 2    🔁 0    💬 1    📌 0

Very nice talk. Thanks for sharing!

04.12.2025 10:57 — 👍 1    🔁 0    💬 0    📌 0

Exactly! The `newdata` argument behaves exactly as in base R; `variables` is a new shortcut for G-computation.

avg_predictions(variables="D"): Marginal means w/ counterfactual values of D.

avg_comparisons(variables="D"): ATE of D, i.e. difference between "counterfactual" marginal means

30.11.2025 19:10 — 👍 12    🔁 0    💬 0    📌 0
6  Counterfactual comparisons – Model to Meaning

That's a really nice explanation from Julia! If you'd like the same basic info in different words (+ a Penguins example), see here: marginaleffects.com/chapters/com...

30.11.2025 18:50 — 👍 3    🔁 0    💬 0    📌 0

Yep, the logic is that this parallels the syntax in avg_comparisons(variables=). Both generate "counterfactual" predictions by duplicating the full dataset and modifying only the focal variable.

30.11.2025 13:14 — 👍 2    🔁 0    💬 0    📌 0

ok, yazi looks amazing. Had never heard of it before but I'm switching immediately.

29.11.2025 13:40 — 👍 2    🔁 0    💬 1    📌 0
John Fox: Books and Software

#rstats
It is with profound sadness I heard that my long-time friend and colleague, John Fox passed away this week.
He was the author of {car}, {effects}, {Rcmdr}, ... and numerous influential books. I will miss him greatly.
www.john-fox.ca

28.11.2025 15:26 — 👍 197    🔁 65    💬 13    📌 10
Preview
Data Visualisation Gallery Gallery of data visualisations created by Nicola Rennie.

One of the things that has been on my to do list for a very long time, is building a gallery of all of the charts I've made across #TidyTuesday, #30DayChartChallenge, #30DayMapChallenge, and other miscellaneous projects 📊

And it's finally here!

Link: nrennie.rbind.io/viz-gallery/

#DataViz #RStats

26.11.2025 13:32 — 👍 110    🔁 19    💬 6    📌 3

Wow! Wish I'd thought of that before submitting 0.0.1 to cran!

27.11.2025 20:43 — 👍 3    🔁 0    💬 0    📌 0

classic bait and switch

27.11.2025 19:59 — 👍 4    🔁 0    💬 1    📌 0

i laughed

27.11.2025 19:53 — 👍 4    🔁 0    💬 1    📌 0
library (tidybayes) # for wrangling and plotting brms models
Library (bayesplot) # for plotting brms models
library (marginaleffects)
#for marginal effects
library (ggdist)
library (patchwork)

library (tidybayes) # for wrangling and plotting brms models Library (bayesplot) # for plotting brms models library (marginaleffects) #for marginal effects library (ggdist) library (patchwork)

Coding tip of the day: make sure you leave informative comments in your code

27.11.2025 16:01 — 👍 49    🔁 1    💬 2    📌 1

looks cool, congrats!

27.11.2025 02:30 — 👍 1    🔁 0    💬 1    📌 0

Right! And my impression is that the people who struggle most are those who insist on immediately computing some kind of "one number summary." I feel it's much easier to start simple, focusing on individual outcome levels, and then build up more complex contrasts piece-by-piece.

23.11.2025 03:27 — 👍 3    🔁 0    💬 0    📌 0

[as the maintainer of an R package that uses the world bank data API, I receive emails about this semi-regularly. it usually doesn't last too long.]

22.11.2025 17:13 — 👍 2    🔁 0    💬 1    📌 0

yep

22.11.2025 17:12 — 👍 1    🔁 0    💬 1    📌 0

this is super cool

22.11.2025 11:49 — 👍 1    🔁 0    💬 0    📌 0
Video thumbnail

#rstats Please welcome Jarl, a new R linter.

Jarl is a CLI tool with extensions in VS Code, Positron, and Zed. It can check thousands of lines of R code in milliseconds.

Jarl provides several output formats, a Github Actions workflow, and more.

Blog post: www.etiennebacher.com/posts/2025-1...

20.11.2025 16:50 — 👍 81    🔁 29    💬 9    📌 3

the stata thing is kind of wild. Congrats!

20.11.2025 20:10 — 👍 2    🔁 0    💬 0    📌 0
Post image

Our py-econometrics org has a new package: `maketables` is now installable from PyPi! You can create regression tables for PyFixest, statsmodels, linearmodels, and save them as html, latex, or word.

github: github.com/py-econometr...
docs: py-econometrics.github.io/maketables/

20.11.2025 19:49 — 👍 30    🔁 8    💬 2    📌 1

This is wonderful!

20.11.2025 13:49 — 👍 2    🔁 0    💬 0    📌 0

What's your cleaning/oiling routine? I must scrub mine too hard because it doesn't improve.

19.11.2025 22:54 — 👍 2    🔁 0    💬 1    📌 0

suuure. bsky.app/profile/did:...

19.11.2025 14:44 — 👍 2    🔁 0    💬 1    📌 0

Building an easy-to-use chrome extension to do this feels like a fun weekend project for a single motivated developer. Plus, there are already dozens of threads on Reddit asking for automated tools. Botnets are an obvious threat, but we wouldn't even need them to massively screw with our samples.

18.11.2025 21:54 — 👍 5    🔁 0    💬 1    📌 1

I also love this new form of social desirability bias, where the LLM infers the research question and gives researchers what they want.

18.11.2025 19:55 — 👍 41    🔁 0    💬 2    📌 0
Post image

new paper by Sean Westwood:

With current technology, it is impossible to tell whether survey respondents are real or bots. Among other things, makes it easy for bad actors to manipulate outcomes. No good news here for the future of online-based survey research

18.11.2025 19:15 — 👍 760    🔁 388    💬 41    📌 125
Post image

we're done

18.11.2025 19:46 — 👍 64    🔁 14    💬 3    📌 8

Great talk! This is very cool work and I look forward to trying the package! It feels like the evals will be highly dependent on the quality (and size) of the target column. And that's also likely to be the most expensive thing to collect. Have you seen some good discussion/guidance around that?

14.11.2025 16:03 — 👍 2    🔁 0    💬 1    📌 0
LinkedIn This link will take you to a page that’s not on LinkedIn

I am very happy that 𝗣𝘆𝗙𝗶𝘅𝗲𝘀𝘁 𝟬.𝟰𝟬.𝟬/𝟬.𝟰𝟬.𝟭 is now available on PyPi! The release includes a few technical changes and exciting new features =)

13.11.2025 18:37 — 👍 3    🔁 1    💬 2    📌 0

@vincentab is following 20 prominent accounts