Tyson Barrett's Avatar

Tyson Barrett

@healthandstats

Husband | Father | Manager Advanced Analytics | PhD | Research Scientist | Meditator | he/him | #rstats #rdatatable #openscience πŸ³οΈβ€πŸŒˆ πŸ§—β€β™‚οΈ tysonbarrett.com

2,253
Followers
1,348
Following
163
Posts
20.09.2023
Joined
Posts Following

Latest posts by Tyson Barrett @healthandstats

Interactive resources

With the power of OJS and Quarto, I’ve created a few interactive websites to illustrate trickier statistical concepts when teaching. Check them out (and adapt and copy as much as you want!)

With links to three different websites (accessible at the main link in the post)

Interactive resources With the power of OJS and Quarto, I’ve created a few interactive websites to illustrate trickier statistical concepts when teaching. Check them out (and adapt and copy as much as you want!) With links to three different websites (accessible at the main link in the post)

Finally got around to adding fancy links to my different interactive teaching websites for showing things like p-hacking, p-value interpretations, and (still-in-draft-form) DAGs at www.andrewheiss.com/teaching/ #rstats #QuartoPub #statsky

06.03.2026 22:15 πŸ‘ 133 πŸ” 22 πŸ’¬ 1 πŸ“Œ 1
Post image

A cartoon from the 1950’s that’s more relevant than ever πŸ’”

04.03.2026 14:40 πŸ‘ 20014 πŸ” 8488 πŸ’¬ 353 πŸ“Œ 329
Preview
A children's hospital is renamed for Dolly Parton and hopes to transform pediatric care in Tennessee Dolly Parton’s name might inspire full-throated sing-a-longs to her working woman’s anthem β€œ9 to 5,” or evoke memories of thrilling days spent at her Dollywood theme park.

β€œDolly Parton Children’s Hospital did not share how much Parton donated as part of the naming announcement. But Matt Schaefer, its president and CEO, said her support would ensure β€˜every child who walks through our doors receives the treatment they deserve.’”

GOD BLESS DOLLY PARTON

01.03.2026 02:56 πŸ‘ 13775 πŸ” 3025 πŸ’¬ 222 πŸ“Œ 301
Preview
How can the use of different modes of survey data collection introduce bias? An introduction to mode effects using directed acyclic graphs (DAGs) Abstract. Survey data are self-reported data collected directly from respondents by a questionnaire or an interview and are commonly used in epidemiology.

Users of survey data, lovers of DAGs, and general methodological enthusiasts, gather round!

I'm so excited to share this new paper, joint work with my brilliant colleagues @rjsilverwood.bsky.social, @pwgtennant.bsky.social, and Liam Wright.

🧡

28.01.2026 12:12 πŸ‘ 73 πŸ” 30 πŸ’¬ 4 πŸ“Œ 7

❀️

28.02.2026 23:36 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Anthropic: We lost a contract because we refuse to build Skynet.

OpenAI: We'll do it

28.02.2026 03:14 πŸ‘ 1586 πŸ” 514 πŸ’¬ 70 πŸ“Œ 28

In my time at Princeton, we've had several Army officers in our doctoral program. They've all done excellent work.

When this former Princeton undergrad says we're actually teaching them "the enemy's wicked ideology" I have no idea what the hell he's talking about but, of course, neither does he.

27.02.2026 22:05 πŸ‘ 3383 πŸ” 730 πŸ’¬ 181 πŸ“Œ 40

Don’t bring data.table into this 😜

26.02.2026 23:40 πŸ‘ 3 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Agreed!

26.02.2026 23:28 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

πŸ‘

26.02.2026 22:50 πŸ‘ 255 πŸ” 30 πŸ’¬ 1 πŸ“Œ 2
Post image

This bad

25.02.2026 21:49 πŸ‘ 3 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Clip from the movie Bugonia showing one of the main characters.

Clip from the movie Bugonia showing one of the main characters.

Wow, Bugonia was such a fascinating movie. If you are looking for something beautifully unique with incredible performances and a great score, watch it

25.01.2026 08:15 πŸ‘ 2 πŸ” 0 πŸ’¬ 0 πŸ“Œ 1

Don’t waste your time with Traitors Australia Season 2. They found the dumbest group of ppl outside of the current US executive branch and it’s a total waste of time.

25.01.2026 08:05 πŸ‘ 0 πŸ” 1 πŸ’¬ 0 πŸ“Œ 0

The federal government is executing American citizens in the middle of the street for exercising their constitutional right to freedom of speech.

This is tyranny. No free people can accept this kind of government. We need to bring an end to the Trump regime.

24.01.2026 17:47 πŸ‘ 9932 πŸ” 2617 πŸ’¬ 290 πŸ“Œ 85

A nurse. A researcher. A helper.

24.01.2026 21:01 πŸ‘ 24569 πŸ” 3962 πŸ’¬ 478 πŸ“Œ 108

Evergreen: β€œThe men who were less-skilled at the game and performing worse relative peersβ€”made frequent, nasty comments to female gamers. In other words, sexist dudes are literally losers.” www.washingtonpost.com/news/the-int...

16.01.2026 06:56 πŸ‘ 2428 πŸ” 769 πŸ’¬ 42 πŸ“Œ 48
To encourage reuse of our data, Pew Research Center, with support from the John Templeton Foundation, invites researchers to submit proposals for new research publications that use one or more of the following datasets (collectively, Datasets) from the Global Religious Futures (GRF) project:  Global Restrictions on Religion 2007-2022 dataset. This cumulative dataset includes measures of government restrictions on religion and social hostilities involving religion in nearly 200 countries and territories. Spring 2024 Survey. This dataset includes measures of religion and spirituality in 35 countries. (Comparable data was also collected in 2023 and 2024 for the United States. The downloadable materials which accompany the international dataset include additional information about U.S. data.) Dataset of Global Religious Composition Estimates for 2010 and 2020. This dataset includes estimates of the size of seven major religious groups in more than 200 countries and territories. We encourag

To encourage reuse of our data, Pew Research Center, with support from the John Templeton Foundation, invites researchers to submit proposals for new research publications that use one or more of the following datasets (collectively, Datasets) from the Global Religious Futures (GRF) project: Global Restrictions on Religion 2007-2022 dataset. This cumulative dataset includes measures of government restrictions on religion and social hostilities involving religion in nearly 200 countries and territories. Spring 2024 Survey. This dataset includes measures of religion and spirituality in 35 countries. (Comparable data was also collected in 2023 and 2024 for the United States. The downloadable materials which accompany the international dataset include additional information about U.S. data.) Dataset of Global Religious Composition Estimates for 2010 and 2020. This dataset includes estimates of the size of seven major religious groups in more than 200 countries and territories. We encourag

Please share: Pew Research Center will provide $3,000 each for 19 new papers using our recent global datasets. We encourage reuse of our Pew-Templeton Global Religious Futures data!
https://www.pewresearch.org/2026/01/16/seeking-research-using-recent-pew-templeton-global-religious-futures-datasets/

17.01.2026 20:27 πŸ‘ 137 πŸ” 110 πŸ’¬ 1 πŸ“Œ 6

Either Causal Inference in R www.r-causal.org or The Effect! www.theeffectbook.net/index.html

16.01.2026 03:53 πŸ‘ 26 πŸ” 6 πŸ’¬ 1 πŸ“Œ 0
Breaking News
The E.P.A. will stop considering lives saved when setting pollution limits and instead calculate only the cost to businesses.

Breaking News The E.P.A. will stop considering lives saved when setting pollution limits and instead calculate only the cost to businesses.

if you put this in a script even erin brockovitch would be like β€œtoo on the nose, dial it back”

12.01.2026 19:01 πŸ‘ 7086 πŸ” 2236 πŸ’¬ 212 πŸ“Œ 147
Preview
a man in a gray hoodie says that was a problem for future me and now i am future me ALT: a man in a gray hoodie says that was a problem for future me and now i am future me
12.01.2026 23:06 πŸ‘ 6 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Appreciate #strangerthings for distracting me from the other stuff in life for a few hours tonight. Really likes how they wrapped it all up

01.01.2026 04:26 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Video thumbnail

Question: But the president’s statements that he believed the election was rife with fraudβ€”those are statements protected by the First Amendment, correct?

Smith: Absolutely not. If they are made to target a lawful government function and are made with knowing falsity, then no, they are not.

31.12.2025 21:04 πŸ‘ 21687 πŸ” 7022 πŸ’¬ 492 πŸ“Œ 315
Post image Post image

DOGE was A LOT less likely to cancel contracts from companies that donated money to Republicans than companies that donated to Democrats.

25.12.2025 22:47 πŸ‘ 3502 πŸ” 1275 πŸ’¬ 72 πŸ“Œ 84
Automated Reverse Dependency Checking Automated, isolated reserve dependency checking, with automatic comparison of the results to the current CRAN checks.

I use it all the time during the #rdatatable release cycle. We have a Gitlab runner that does this but it is so useful to check individual packages or check specific branches of the pkg. If you have a pkg with reverse dependencies, worth checking out

revdepcheck.r-lib.org

23.12.2025 20:34 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Noticed that the {revdepcheck} package no longer has the "not being actively maintained" message (looks like it was removed a year ago, just didn't notice). This is such a nice package, thanks to @gaborcsardi.org @hadley.nz and co for keeping it alive πŸŽ‰

23.12.2025 20:34 πŸ‘ 4 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Preview
What have we learned about child poverty in America? Members of a National Academy of Sciences committee share insights

New, at Can We Still Govern?
Poverty is not some insurmountable problem, we can fix it.
A group of National Academies of Science researchers review the temporary expansion of the Child Tax Credit during the pandemic, showing it cut child poverty in half. 🧡
donmoynihan.substack.com/p/what-have-...

22.12.2025 14:18 πŸ‘ 521 πŸ” 197 πŸ’¬ 8 πŸ“Œ 10

"we'll give you $3,000 to stop contributing to our economy"

22.12.2025 15:27 πŸ‘ 704 πŸ” 119 πŸ’¬ 45 πŸ“Œ 9
Geordi LaForge rejecting this code

library(tidyverse)

penguins |>
  mutate(
    nice = glue::glue(
      "{species} on {island} Island ({body_mass} g)"
    )
  ) |>
  select(nice)
#>                                    nice
#> 1   Adelie on Torgersen Island (3750 g)
#> 2   Adelie on Torgersen Island (3800 g)
#> 3   Adelie on Torgersen Island (3250 g)


Geordi LaForge approving this code

library(tidyverse)

penguins |>
  mutate(
    nice = str_glue(
      "{species} on {island} Island ({body_mass} g)"
    )
  ) |>
  select(nice)
#>                                    nice
#> 1   Adelie on Torgersen Island (3750 g)
#> 2   Adelie on Torgersen Island (3800 g)
#> 3   Adelie on Torgersen Island (3250 g)

Geordi LaForge rejecting this code library(tidyverse) penguins |> mutate( nice = glue::glue( "{species} on {island} Island ({body_mass} g)" ) ) |> select(nice) #> nice #> 1 Adelie on Torgersen Island (3750 g) #> 2 Adelie on Torgersen Island (3800 g) #> 3 Adelie on Torgersen Island (3250 g) Geordi LaForge approving this code library(tidyverse) penguins |> mutate( nice = str_glue( "{species} on {island} Island ({body_mass} g)" ) ) |> select(nice) #> nice #> 1 Adelie on Torgersen Island (3750 g) #> 2 Adelie on Torgersen Island (3800 g) #> 3 Adelie on Torgersen Island (3250 g)

I don't know how I've missed it because it's *right on the documentation home page*, but if you use {glue} for nice string interpolation in #rstats and you have {stringr} loaded (likely through the tidyverse), you can use str_glue() instead of glue::glue() or loading library(glue) glue.tidyverse.org

25.11.2025 18:00 πŸ‘ 101 πŸ” 15 πŸ’¬ 4 πŸ“Œ 0

This is a very good paper (focused on infectious diseases and DiD) that looks at how DiD handles different specifications.

www.medrxiv.org/content/10.1...

24.11.2025 02:32 πŸ‘ 12 πŸ” 1 πŸ’¬ 2 πŸ“Œ 0
As I spent more and more of my life under the care of doctors, nurses, and researchers striving to improve the lives of others, I watched as Bobby cut nearly a half billion dollars for research into mRNA vaccines, technology that could be used against certain cancers; slashed billions in funding from the National Institutes of Health, the world's largest sponsor of medical research; and threatened to oust the panel of medical experts charged with recommending preventive cancer screenings. Hundreds of N.I.H. grants and clinical trials were cancelled, affecting thousands of patients. I worried about funding for leukemia and bone-marrow research at Memorial Sloan Kettering. I worried about the trials that were my only shot at remission. Early in my illness, when I

As I spent more and more of my life under the care of doctors, nurses, and researchers striving to improve the lives of others, I watched as Bobby cut nearly a half billion dollars for research into mRNA vaccines, technology that could be used against certain cancers; slashed billions in funding from the National Institutes of Health, the world's largest sponsor of medical research; and threatened to oust the panel of medical experts charged with recommending preventive cancer screenings. Hundreds of N.I.H. grants and clinical trials were cancelled, affecting thousands of patients. I worried about funding for leukemia and bone-marrow research at Memorial Sloan Kettering. I worried about the trials that were my only shot at remission. Early in my illness, when I

Just an absolutely gutting essay by Tatiana Schlossberg, a writer, mother of two young children, and cousin of RFK Jr who is dying of leukemia.

www.newyorker.com/culture/the-...

22.11.2025 16:09 πŸ‘ 15036 πŸ” 5382 πŸ’¬ 374 πŸ“Œ 229