Malcolm 朝精 Barrett
banner
malcolmbarrett.malco.io
Malcolm 朝精 Barrett
@malcolmbarrett.malco.io

Ph.D., epidemiology. research software engineer @ Stanford Health Policy. living in Ann Arbor. open-source data science. causal inference. doing poems on aircrafts. approximately Bayesian. formerly Posit, Apple, AmeriCorps. 心を燃やせ。sic semper tyrannis. .. more

Art 37%
Education 11%
Pinned
Link broke! Here is the current link: www.r-causal.org/chapters/04-...

Reposted by Barrett

Calling all #Python maintainers: The #PyConUS 2026 Maintainers Summit CFP is open!

Topics include: GenAI in OSS, security, community building, developer workflows & more.

First-time speakers & underrepresented voices especially encouraged!

Learn more: us.pycon.org/2026/events/...
Maintainers Summit
PyCon US 2026
us.pycon.org

Reposted by Barrett

Don’t forget the barnacles! www.azquotes.com/quote/1095192
Charles Darwin Quote
I hate a Barnacle as no man ever did before, not even a Sailor in a slow-sailing ship.
www.azquotes.com
Happy birthday to one of my favourite haters, Charles Darwin
Being able to use a lookup table & just use "from" & "to" language like this is SUCH a wonderfully change for me when recoding values 🥹 #dplyr has always felt conversational to me, & now we can finally use it to say "recode this variable from this to that" without typing a long case_when #rstats
dplyr 1.2.0 was released last week and since I use {dplyr} a lot in my work, I wanted to take some time to try some of the new functions.

This post provides some supplemental examples of the new functions, beyond what is provided in the new Posit materials.
#rstats

cghlewis.com/blog/dplyr_u...
Trying out dplyr 1.2.0 | Crystal Lewis
Updating existing dplyr code in my workflow with new dplyr updates
cghlewis.com

Reposted by Barrett

#EpiSky #CausalSky #PublicHealth

Summer School with me (teaching Applied Sensitivity Analysis) and others? Check this out:

sse.sph.umich.edu/courses/
Courses
sse.sph.umich.edu

Reposted by Barrett

I'm happy to announce a new and improved version of my quarto revealjs extension that interfaces with roughnotation

More annotation types, fragment support, works with flourish extension to allow for annotations of code chunks, and reverse animations are all here

github.com/EmilHvitfeld...
#quarto
dplyr 1.2.0 is out now and we are SO excited!

- `filter_out()` for dropping rows

- `recode_values()`, `replace_values()`, and `replace_when()` that join `case_when()` as a complete family of recoding/replacing tools

These are huge quality of life wins for #rstats!

tidyverse.org/blog/2026/02...
dplyr 1.2.0
dplyr 1.2.0 fills in some important gaps in dplyr's API: we've added a new complement to `filter()` focused on dropping rows, and we've expanded the `case_when()` family with three new recoding and re...
tidyverse.org
The “prosecute the former regime at every level” candidate has my vote in 2028.

Reposted by Barrett

now for the traditional eating of the christmas tree

Reposted by Barrett

all my writing is trending toward good

72.49530001
not the kind of behavior I expect from the winner of the fifa peace prize
Merriam-Webster’s human editors have chosen ‘slop’ as the 2025 Word of the Year.

the word about %notin% is out baby
Back in the top 10, baby!

Eat your heart out, "#rstats is dying" thinkpieces. 😜

www.tiobe.com/tiobe-index/
TIOBE Index - TIOBE
www.tiobe.com
Back in the top 10, baby!

Eat your heart out, "#rstats is dying" thinkpieces. 😜

www.tiobe.com/tiobe-index/
TIOBE Index - TIOBE
www.tiobe.com

Reposted by Barrett

The ability to specify colours with a 3-digit hex (e.g. "#12A" as equivalent to "#1122AA"). It was the first patch I was involved with, so it's especially dear to me! It's also makes changes to C code.

github.com/r-devel/r-pr...

With @oberman.bsky.social @malcolmbarrett.malco.io @gws.phd
3-digit hex colors · Issue #74 · r-devel/r-project-sprint-2023
Discussed in #73 Originally posted by pmur002 August 30, 2023 A post on fosstodon suggests adding support for "#RGB" colours in R (in addition to existing "#RRGGBB" colours. This may not be an urge...
github.com

hold on, I didn't get visited by one last year. Am I now obligated to provide a spirit?
One of the many reasons AI can't produce good writing is it can't hate its own writing. It can't think to itself "Maybe I'm illiterate" during the writing process. And that's essential
Big new blogpost!

My guide to data visualization, which includes a very long table of contents, tons of charts, and more.

--> Why data visualization matters and how to make charts more effective, clear, transparent, and sometimes, beautiful.
www.scientificdiscovery.dev/p/salonis-gu...

Reposted by Barrett

Want your Quarto PDFs to actually look good?

Use Typst's "set" rules for global text formatting and "show" rules to target specific elements like headings.

Mix fonts, colors, sizes et cetera to make those reports pop!

See full tutorial: buff.ly/uMXvUzR

#rstats #quarto #typst #dataviz

honestly the most important discovery here is the similarity between air jordan and lambda. I don't think I'll be able to unsee that

Reposted by Barrett

Today I'm talking about contributing to base R 💻

Are you curious about how to improve the language we love, at its core?

This is a thread for you!

#RStats

Reposted by Barrett

oh yea

Luckily, I’ve had a fever for two days. My brain is cooked, but I make a great heater

Winter is an affront to all cats
%notin% coming soon to an #rstats environment near you 🤩

developer.r-project.org/blosxom.cgi/...
Daily News: R-devel/NEWS
developer.r-project.org

Reposted by Barrett

People rarely check the positivity assumption but I’d say 5% of the time it shows something strange is going on that we wouldn’t have caught otherwise.