Tyson Barrett
@healthandstats.bsky.social
2.2K followers 1.3K following 140 posts
Husband | Father | Manager Advanced Analytics @highmark | PhD | Research Scientist | Meditator | he/him | #rstats #rdatatable #openscience 🏳️‍🌈 🧗‍♂️ tysonbarrett.com
Posts Media Videos Starter Packs
Pinned
Reposted by Tyson Barrett
Reposted by Tyson Barrett
andrew.heiss.phd
Weird ggplot thing that got me this week with the update to 4.0 - it supports new ink and paper arguments (www.tidyverse.org/blog/2025/09... ) and they've changed how transparency works! If you a transparent bg, you can control it with theme_*() now #rstats
library(ggplot2)

# Doesn't work anymore!
ggplot(data = mtcars, aes(x = hp, y = mpg)) +
  geom_point() +
  theme_minimal()
ggsave("not-transparent.png", bg = "transparent")


# This works!
ggplot(data = mtcars, aes(x = hp, y = mpg)) +
  geom_point() +
  theme_minimal(paper = "transparent")
ggsave("yes-transparent.png")
Reposted by Tyson Barrett
npr.org
NPR @npr.org · 10d
Today marks the first day in public media’s history without federal funding. And we’re not going anywhere.

Listeners like you keep our mission alive. Protect one of the last places where America comes together to hear itself.

Stand with us today. Donate at this link: n.pr/46wamAj
Reposted by Tyson Barrett
jbf1755.bsky.social
The person who did all of these things was called a “tyrant…unfit to be the ruler of a free people” in 1776.

Yup.
Give it a read…
bencollins.bsky.social
Just gonna keep tapping the sign*

*𝘵𝘩𝘦 𝘴𝘪𝘨𝘯 𝘪𝘴 𝘵𝘩𝘦 𝘋𝘦𝘤𝘭𝘢𝘳𝘢𝘵𝘪𝘰𝘯 𝘰𝘧 𝘐𝘯𝘥𝘦𝘱𝘦𝘯𝘥𝘦𝘯𝘤𝘦
He has obstructed the Administration of Justice, by refusing his Assent to Laws for establishing Judiciary powers.

He has made Judges dependent on his Will alone, for the tenure of their offices, and the amount and payment of their salaries.

He has erected a multitude of New Offices, and sent hither swarms of Officers to harrass our people, and eat out their substance.

He has kept among us, in times of peace, Standing Armies without the Consent of our legislatures.

He has affected to render the Military independent of and superior to the Civil power.

He has combined with others to subject us to a jurisdiction foreign to our constitution, and unacknowledged by our laws; giving his Assent to their Acts of pretended Legislation:

For Quartering large bodies of armed troops among us:

For protecting them, by a mock Trial, from punishment for any Murders which they should commit on the Inhabitants of these States:

For cutting off our Trade with all parts of the world:

For imposing Taxes on us without our Consent:

For depriving us in many cases, of the benefits of Trial by Jury:

For transporting us beyond Seas to be tried for pretended offences:

For abolishing the free System of English Laws in a neighbouring Province, establishing therein an Arbitrary government, and enlarging its Boundaries so as to render it at once an example and fit instrument for introducing the same absolute rule into these Colonies:

For taking away our Charters, abolishing our most valuable Laws, and altering fundamentally the Forms of our Governments:

For suspending our own Legislatures, and declaring themselves invested with power to legislate for us in all cases whatsoever.

He has abdicated Government here, by declaring us out of his Protection and waging War against us.
Reposted by Tyson Barrett
andrew.heiss.phd
Everything is so stupid.
Reposted by Tyson Barrett
ryanmarino.bsky.social
This is why we fund scientists to study things like oyster slobber even if you don’t think it sounds important
leahmcelrath.bsky.social
⚠️ Chinese researchers have invented bone glue that mimics how oysters stick to surfaces underwater.

The adhesive can reportedly repair orthopedic fractures in 2-3 minutes, even in blood-rich environments, and is bioabsorbable.

interestingengineering.com/science/chin...
China's oyster-inspired 'bone glue' bonds fractures in minutes
A new oyster-inspired Bone-02 adhesive can revolutionize bone repair without metal fasteners.
interestingengineering.com
Reposted by Tyson Barrett
ryanenos.bsky.social
I have never seen such a blistering rebuke of a President by a federal judge. He is telling us clearly to stand up for our liberty against a dictator. storage.courtlistener.com/recap/gov.us...
Reposted by Tyson Barrett
djvanness.bsky.social
A lot of people think that every international student admitted means one fewer spot for domestic students, when the opposite is more likely true - the tuition revenue international students bring allows public universities to provide substantial discounts to domestic students, improving access.
Reposted by Tyson Barrett
kellybodwin.com
Another week, another magical #rstats gift from Emil.
🥰
emilhvitfeldt.bsky.social
I'm exited to announce a new resource about making slides with quarto and revealjs. This book is the combination of all the work I have done in this area, reordered and polished up

There isn't a lot of new information yet, but this format allows me to add more easily

slidecrafting-book.com
#quarto
Screenshot of first page of slidecrafting-book.com website
healthandstats.bsky.social
Love this show! And Hober.
Reposted by Tyson Barrett
justinwolfers.bsky.social
Critical part of the President's new $100,000 charge for H1-B visas: The Administration can also offer a $100,000 discount to any person, company, or industry that it wants. Replacing rules with arbitrary discretion.

Want visas? You know who to call and who to flatter.
Reposted by Tyson Barrett
chrisvvarren.bsky.social
Trying to keep my professional chill but I’m SO excited Carnegie Mellon is launching a cluster hire in computational humanities—MULTIPLE JOBS!

1. Asst Teaching Track Prof in Computational Humanities - apply.interfolio.com/173622
2. Asst Tenure Track Prof in CH - apply.interfolio.com/173626
healthandstats.bsky.social
I’m guessing those of us who know you and your work all figured that was the case 😅
Reposted by Tyson Barrett
smachlis.bsky.social
One of my favorite #PositConf things, from @hadley.nz : the Pac-Man inclusiveness "rule"
#PositConf2025
Alt text from ChatGPT: This is a photo of a presentation slide projected on a screen in front of an audience. The slide has a dark blue background and features a large yellow Pac-Man figure on the left. Text inside the "mouth" of Pac-Man reads: "LEAVE SOME SPACE HERE." On the right side of the slide, the heading says: "Remember the Pac-Man Rule" with "Pac-Man Rule" in yellow. Below it, white text reads: "Invite new people into your groups, make new friends, and build a community full of people who feel included."
healthandstats.bsky.social
I will find you eventually
healthandstats.bsky.social
Yay! Will be looking for you!
Reposted by Tyson Barrett
malcolmbarrett.malco.io
"It places you in a powerful state of extreme empathy — that our user’s code is our responsibility"
emilyriederer.bsky.social
Really insightful post from Julie Tibshirani (spotted in LinkedIn, can't find on Bsky) reflecting on #rstats 's unique governance structure and what can be learned for other languages

jtibs.substack.com/p/if-all-the...
If all the world were a monorepo
The R ecosystem and the case for extreme empathy in software maintenance
jtibs.substack.com
Reposted by Tyson Barrett
vincentab.bsky.social
The new {marginaleffects} release for #RStats (0.30.0) comes with two new vignettes:

1. Speed up computation with automatic differentiation (often 10x gains) marginaleffects.com/bonus/perfor...

2. Power analyses with {marginaleffects} and {DeclareDesign}. marginaleffects.com/bonus/power....
37  Performance – Model to Meaning
marginaleffects.com
Reposted by Tyson Barrett
coatless.bsky.social
By request: Same #rshiny app → native #electron desktop app workflow now on #Windows11

shinyelectron::export() → #rshinylive → installer → app.exe

[Worth the Parallels license to record this from my Mac]

Still no #rstats dependencies for end users. Living the cross-platform life (virtually).
Reposted by Tyson Barrett
ryanestrada.com
Just a reminder to check for your name in this list of books that OpenAI trained from. If your name is there, they probably owe you several thousand dollars.

OpenAI cried that if everyone eligible author files, the company will go bankrupt, so I'm alerting every author I have ever spoken to.
Search LibGen, the Pirated-Books Database That Meta Used to Train AI
Millions of books and scientific papers are captured in the collection’s current iteration.
www.theatlantic.com
Reposted by Tyson Barrett
conradhackett.bsky.social
Disease prevalence in US states before & after vaccine introduction 🧪

From Edward Tufte & graphics.wsj.com/infectious-d...
healthandstats.bsky.social
Love that your hex tat is nicely displayed with its other hex friends
Reposted by Tyson Barrett
dgkeyes.com
I gave the keynote at Cascadia R Conf 2025: “25 Things You Didn't Know You Could Do with R.”

R isn’t just for stats — it’s great for visualization, mapping, automation, and more.

Watch the talk + get all the resources here: buff.ly/6svaIME

Hope you learn something new!

#rstats
Twenty-Five Things You Didn't Know You Could Do with R
Explore 25 novel ways to utilize R, including pulling data from various sources, data visualization, mapping, using Quarto for reporting, automating tasks,.
rfortherestofus.com
Reposted by Tyson Barrett
dingdingpeng.the100.ci
Ever stared at a table of regression coefficients & wondered what you're doing with your life?

Very excited to share this gentle introduction to another way of making sense of statistical models (w @vincentab.bsky.social)
Preprint: doi.org/10.31234/osf...
Website: j-rohrer.github.io/marginal-psy...
Models as Prediction Machines: How to Convert Confusing Coefficients into Clear Quantities

Abstract
Psychological researchers usually make sense of regression models by interpreting coefficient estimates directly. This works well enough for simple linear models, but is more challenging for more complex models with, for example, categorical variables, interactions, non-linearities, and hierarchical structures. Here, we introduce an alternative approach to making sense of statistical models. The central idea is to abstract away from the mechanics of estimation, and to treat models as “counterfactual prediction machines,” which are subsequently queried to estimate quantities and conduct tests that matter substantively. This workflow is model-agnostic; it can be applied in a consistent fashion to draw causal or descriptive inference from a wide range of models. We illustrate how to implement this workflow with the marginaleffects package, which supports over 100 different classes of models in R and Python, and present two worked examples. These examples show how the workflow can be applied across designs (e.g., observational study, randomized experiment) to answer different research questions (e.g., associations, causal effects, effect heterogeneity) while facing various challenges (e.g., controlling for confounders in a flexible manner, modelling ordinal outcomes, and interpreting non-linear models).
Figure illustrating model predictions. On the X-axis the predictor, annual gross income in Euro. On the Y-axis the outcome, predicted life satisfaction. A solid line marks the curve of predictions on which individual data points are marked as model-implied outcomes at incomes of interest. Comparing two such predictions gives us a comparison. We can also fit a tangent to the line of predictions, which illustrates the slope at any given point of the curve. A figure illustrating various ways to include age as a predictor in a model. On the x-axis age (predictor), on the y-axis the outcome (model-implied importance of friends, including confidence intervals).

Illustrated are 
1. age as a categorical predictor, resultings in the predictions bouncing around a lot with wide confidence intervals
2. age as a linear predictor, which forces a straight line through the data points that has a very tight confidence band and
3. age splines, which lies somewhere in between as it smoothly follows the data but has more uncertainty than the straight line.
Reposted by Tyson Barrett
saletan.bsky.social
For those of you who like a bit of socialism with your nationalism. truthsocial.com/@realDonaldT...