Sign in

Ben Harrap

@bharrap.bsky.social
2.4K followers 825 following 1.4K posts

doer of data things at Yardhura Walani president of statsoc.org.au I do #rstats, surveys, biostatistics, #IDSov on Ngunnawal and Ngambri lands not Indigenous, non-binary (they/them) benharrap.com

PostsRepliesMedia
Ben Harrap @bharrap.bsky.social · 9h
It's also possible to show interact on a study-level, such as omitting it from the compiled/strict DAGs, or showing only that study's DAG.
110 1
Ben Harrap @bharrap.bsky.social · 9h
The compiled DAG view just combines them all, meaning cyclical and bidirectional relationships are shown. The strict view is meant to comply with DAG principles. Can also toggle to add weight to relationships that are more commonly specified
110 1
Ben Harrap @bharrap.bsky.social · 9h
Another idea was to filter in/out nodes and edges based on some criteria Number of times a variable appears across DAGs could indicate agreement across studies Publication date could show evolution of understanding over time
110 1
Ben Harrap @bharrap.bsky.social · 9h
What I'd imagined was a way to compile all DAGs relating to the same outcome in a single mega-DAG. The publications that it's drawn on are shown on the right, and clicking on a variable highlights the studies that include it #episky #academicsky #econsky
120 2
Ben Harrap @bharrap.bsky.social · 16h
Botanic gardens looking beautiful
A hot pink waratah flowerWhite and pink flowers Flowers with three petals, two of which are a warm apricot colour and the third a hot pinkPurple and yellow flowers over green foliage
291 9
Ben Harrap @bharrap.bsky.social · 16/10/2026
It do be like that sometimes (right now)
A two panel meme

Top panel: two buttons, one says "get on top of my emails", the other "quit my job"

Bottom panel: a man sweating and struggling to choose
1222 22
Ben Harrap @bharrap.bsky.social · 15/10/2026
Good analysis isn't enough to make change - we need to. Number 1 tip - connect health data with the economics of it when producing policy advice
A presentation outlining five challenges and solutions for making change with data
020 2
Ben Harrap @bharrap.bsky.social · 15/10/2026
Good talk and great plots from @freerangestats.info at #AEA2026 #rstats
Peter Ellis stood at a lectern, gesturing at a presentation
392 9
Ben Harrap @bharrap.bsky.social · 15/10/2026
While the screen was comically small to be presenting from, my #AEA2026 talk went pretty well! Choosing to have few words, big font, and big pictures paid off
Ben Harrap standing at a lectern, next to a TV displaying a presentation
080 8
Ben Harrap @bharrap.bsky.social · 10/10/2026
I'm in Fiji, ready for #AEA2026 🌴 🥥🇫🇯
A bright pink leaf surrounded by ferns and other green vegetation
070 7
Ben Harrap @bharrap.bsky.social · 07/10/2026
And of course this photo of Randy He's on my website, he's tattooed on my arm What you don't see in this picture is me, crouched down, holding his butt so he doesn't wander off
A white greyhound wearing a red neckerchief and black cowboy hat, against a backdrop of cacti and desert
070 7
Ben Harrap @bharrap.bsky.social · 07/10/2026
This photo of Cheeky, because this is basically every photo of her We adopted her at 9 and she'd never lived indoors. Her favourite thing immediately became cushions and at least one part of her body would be touching a cushion at all times
A black greyhound, asleep in her bed with her head resting on a cushion
1150 15
Ben Harrap @bharrap.bsky.social · 06/10/2026
Today in Ben Actually Reads The Documentation: Quarto HTML output has an email obfuscation option!? quarto.org/docs/referen... Images showing document YAML and corresponding output Is it effective? No idea, but it's cool! #quarto #rstats
A screenshot of a Quarto document demonstrating the email-obfuscation option:

format:
  html:
    email-obfuscation: javascript

followed by markdown text with an email addressA screenshot of the HTML source output by the Quarto document, where the email address is wrapped in a HTML script tag
1110 11
Ben Harrap @bharrap.bsky.social · 30/09/2026
The presentation we can all aspire to
a five-panel meme of vince mcmahon getting progressively more excited

panel 1: Our next presentation is on <complex topic>
panel 2: 20 min presentation. slide 1/41
panel 3: "so here's the results" slide 8/41
panel 4: "thanks for coming to my talk" slide 19/41
panel 5: every question answered by the extra slides
1260 26
Ben Harrap @bharrap.bsky.social · 24/09/2026
Getting the last speaker in a conference session to be the session chair like
A panopticon
1201 20
Ben Harrap @bharrap.bsky.social · 19/09/2026
Nice! Quarto websites as so easy to maintain! If you're a sucker for tweaking layouts, you might enjoy this change I made to the trestles theme. The social links are displayed in a row on mobile view, so your bio is visible on page load, inviting visitors to scroll down.
a screenshot of the mobile view of benharrap.com, where the social media links are displayed as icons in a row
130 3
Ben Harrap @bharrap.bsky.social · 19/09/2026
I'm really enjoying the implications of "Authentic BUT Australian"
A packet of tortillas that reads "cali mex tortillas. Authentic foods but Australian made"
2142 14
Ben Harrap @bharrap.bsky.social · 18/09/2026
> Please complete your staff feedback survey > This is your personalised link, don't share it with anyone > No one can identify responses
press X to doubt meme
171 7
Ben Harrap @bharrap.bsky.social · 09/09/2026
This has to be the most bizarre junk mail I've received in my life Is the Venn diagram of junk-mail readers and people who would install Linux not just two separate circles? What's going on here???
A folded sheet of A4 junk mail, extolling the virtues of Linux mint
1101 10
Ben Harrap @bharrap.bsky.social · 05/09/2026
Why not both? (I'm disgusted that this works)
76411 64
Ben Harrap @bharrap.bsky.social · 23/08/2026
🎉New tool for RevealJS slide theming🎉 You can play with: - background colours - base font size - colour and typeface for text and code - aspect ratio It displays contrast info, to help keep things accessible, and outputs the corresponding scss! benharrap.com/tools/quarto... #rstats #Quarto
A screenshot of a revealjs slide theme editor. An example slide is presented with several options to change colour schemes, typefaces, and font size
3378 37
Ben Harrap @bharrap.bsky.social · 18/08/2026
Data Harmonisation
Data from Star Trek singing
0236 23
Ben Harrap @bharrap.bsky.social · 06/08/2026
Five panel meme featuring the same person saying

Causal inference?

Regression

Prediction? Regression

Description?

Believe it or not, regression
37820 78
Ben Harrap @bharrap.bsky.social · 05/08/2026
Which is crazy, because I'd wager that the majority of people doing science are first and foremost interested in estimates and how to interpret them
Top gear meme

Meaningful, accurate interpretations of important quantities - this is brilliant

Poop emojis - but I like this
140 4
Ben Harrap @bharrap.bsky.social · 05/08/2026
Or in modern terms...
Meme with two characters

Nerd crying and saying "nooo you have to consider the evidence in context and keep experimenting"

Normie saying "haha p<0.05 go brrr"
020 2
Ben Harrap @bharrap.bsky.social · 27/07/2026
The kids area at the science museum knows what's up #rstats
And illustration of five different types of penguin, showing their different heights
4290 29
Ben Harrap @bharrap.bsky.social · 26/07/2026
Home made clotted cream: success
Thick clotted cream, standing upright in a container
060 6
Ben Harrap @bharrap.bsky.social · 13/07/2026
Accidental RStudio #rstats hotkey discovery of the day Alt (Option) + Shift + Up/Down I knew it incremented numbers, but not words too!? in/out true/false - what else? Is there a list of these words somewhere?
2379 37
Ben Harrap @bharrap.bsky.social · 04/07/2026
Questacon has a new exhibition about quantum science. It was fun to sit and watch but the real highlight was the dad joke they snuck in: Where did all the hackers go? They ransomware
A screen depicting a colourful street in an imagined future where quantum robots are helping out in various ways
071 7
Ben Harrap @bharrap.bsky.social · 30/06/2026
I'm actually surprised by the result, although I don't know who Matt Levine is
You are...
The Shrug
patron saint: Matt Levine
AI is a thing that exists and you regard it with detached amusement, like everything else. It's overhyped, sure, but so is most stuff. You'll use it when it's useful and ignore it when it isn't, and you find the discourse more interesting than the technology. You are unbothered.
020 2
Ben Harrap @bharrap.bsky.social · 26/06/2026
How would you like your effect size today? I'll have it medium please
010 1
Ben Harrap @bharrap.bsky.social · 22/06/2026
Drinking my pre-workshop espresso and having a Very Melbourne Experience, where I can't tell if I'm hearing cars honking or saxophone playing over the cafe speakers
The inside of a coffee shop, with floor to ceiling windows looking out onto congested traffic backed up across an intersection
130 3
Ben Harrap @bharrap.bsky.social · 15/06/2026
It's currawong party time this morning (sound on) @skwinnicki.bsky.social some Australian birdsong for you. I love it!
131 3
Ben Harrap @bharrap.bsky.social · 15/06/2026
Wow in all my years of using Stack Overflow, I've never noticed/used the code copy button I finally used it today and found it automatically adds in some useful metadata! Left = Stack Overflow answer Right = Pasted code ps thanks @nrennie.bsky.social for the solution 😀
A screenshot of a stack overflow solution, with a "copy" button in the top-rightCode from the stack overflow solution, with additional metadata listing the source (a hyperlink to the original solution, the solution poster, and the retrieval date and licensing info
081 8
Ben Harrap @bharrap.bsky.social · 14/06/2026
Gomez needs to come to Australia, it's clearly an iced vovo
Two iced vovo biscuits, one on top of the other. They're rectangular with jam down the middle and pink icing on either side, dusted with coconut
022 2
Ben Harrap @bharrap.bsky.social · 11/06/2026
Expectation: I'll get on with this task I've been meaning to do for weeks now My ADHD reality:
210 2
Ben Harrap @bharrap.bsky.social · 08/06/2026
Spending the morning preparing food. Grateful to be able to spend a couple of hours in the kitchen and have people to share the food with
Cucumbers laid out on a chopping board next to a knife, with a recipe book open and several condiments and herbs scattered around
170 7
Ben Harrap @bharrap.bsky.social · 05/06/2026
The eleventh commandment
A sign that reads "persons shall not ride on this hoist"
000 0
Ben Harrap @bharrap.bsky.social · 04/06/2026
You probably saw `filter_out()` in {dplyr} 1.2.0 but did you notice `when_any()` and `when_all()`? Not only is it easier to write conditions, but the usage of commas instead of | and & means formatters like air will align all conditions the same 🤩 #rstats dplyr.tidyverse.org/reference/wh...
A snippet of R code:

mtcars |> filter_out(when_any(cyl == 6, hp < 100))
18811 88
Ben Harrap @bharrap.bsky.social · 04/06/2026
Tom Cruise yelling into a mobile phone "show me the DAG"
062 6
Ben Harrap @bharrap.bsky.social · 23/05/2026
My dream job would be building dry stone walls! Niche market though haha
A dry stone wall in front of two trees
331 3
Ben Harrap @bharrap.bsky.social · 21/05/2026
I had no idea that Australia's national anthem was so democratically selected! (CBCS = Commonwealth Bureau of Census and Statistics) #statssky #databs
A photo of text and a form from 1974. The text reads "the CBCS undertook a national anthem poll to advise the government of the anthem preferred by the population. Advance Australia fair was the favourite"

The form asks demographic questions, one question about which songs respondents had heard, and another about which is preferred for the national anthem
121 2
Ben Harrap @bharrap.bsky.social · 03/05/2026
Autumn leaves that have gone an intense red colour
040 4
Ben Harrap @bharrap.bsky.social · 02/05/2026
Disclaimer: this is my first #quarto extension, I don't know what I'm doing That said, for who knows what reason I've always wanted a RevealJS feature where you can summon Wayne Knight to deliver his iconic "ah ah ah" line from Jurassic Park You're welcome (sound on) github.com/benharrap/ah...
7408 40
Ben Harrap @bharrap.bsky.social · 01/05/2026
screaming seagull meme

panel 1: chill seagull saying FALSE
panel 2: agitated seagull saying FAALSE
panel 3: deep breath
panel 4: screaming FAAAAAAAAALSE
0110 11
Ben Harrap @bharrap.bsky.social · 28/04/2026
Common #rstats workflows in niche meme format
The 90's 'bop it' toy with the R package dplyr's verbs filter, select, mutate, and summarise superimposed on the toy's actions
0223 22
Ben Harrap @bharrap.bsky.social · 19/03/2026
There's a lovely green gradient here for anyone looking to make a single sequential colour palette #rstats
Gum tree leaves of varying shades of green
091 9
Ben Harrap @bharrap.bsky.social · 13/03/2026
I love the haven package! I wrote this handy function for my data pipeline that takes a data dictionary and applies labels to each variable in the dataset (code in alt-text) I feel like @cghlewis.bsky.social would appreciate this
apply_labels <- function(data){
  data |> 
    mutate(
      across(
        .cols = everything(),
        .fns = \(x) {
          # Get current value labels
          value_labels <- dictionary |>
            filter(variable == cur_column()) |>
            pull(label_values) |>
            unlist()
          
          # Get current variable label
          variable_label <- dictionary |>
            filter(variable == cur_column()) |>
            pull(label)
          
          # Apply the labels
          labelled(
            x = x,
            labels = value_labels,
            label = variable_label
          )
        }
      )
    )
}
281 8
Ben Harrap @bharrap.bsky.social · 05/03/2026
I love my job, I get to write code all the time
A four-panel meme of a person slowly applying clown make-up.

1: Yep I'll review that grant application
2: Sure, I'll supervise some students
3: OK I'll organise that conference
4: I didn't write any code today
0192 19
Ben Harrap @bharrap.bsky.social · 28/02/2026
King parrots ❤️
A king parrot peeking through something foliage
0111 11