🦜 Andrew Heiss's blog
@www.andrewheiss.com.atom.html@rss-parrot.net
I'm an automated parrot! I relay a website's RSS feed to the Fediverse. Every time a new post appears in the feed, I toot about it. Follow me to get all new posts in your Mastodon timeline!
Brought to you by the RSS Parrot.
---
Andrew Heiss's blog
Your feed and you don't want it here? Just
e-mail the birb.
Apple Music Wrapped with R
https://www.andrewheiss.com/blog/2024/12/04/apple-music-wrapped-r/
Published: December 4, 2024 05:00
’Tis the season for Spotify Wrapped stats and I love it, both for seeing what everyone listens to and because it’s such a cool way of presenting data. A few years ago on Twitter, Caitlin Hudon noted that
Spotify Wrapped is a great example of how you can…
Guide to generating and rendering computational markdown content programmatically with Quarto
https://www.andrewheiss.com/blog/2024/11/04/render-generated-r-chunks-quarto/
Published: November 4, 2024 05:00
This year, I’ve helped build the Idaho Secretary of State’s office’s election results website for both the primary and general elections. Working with election data is a complex process, with each precinct reporting results to their parent counties, which…
Fun with Positron
https://www.andrewheiss.com/blog/2024/07/08/fun-with-positron/
Published: July 8, 2024 04:00
At the end of June 2024, Posit released a beta version of its next-generation IDE for data science: Positron. This follows Posit’s general vision for language-agnostic data analysis software: RStudio PBC renamed itself to Posit PBC in 2022 to help move…
Calculating the proportion of coastline-to-border for US states
https://www.andrewheiss.com/blog/2024/05/08/coastline-to-border-proportions/
Published: May 8, 2024 04:00
A few days ago, my wife, a bunch of my kids, and I were huddled around a big wall map of the United States, joking about the relative unimportance of Rhode Island, the smallest state in the US. It’s one of the states I never ever think about:
Tweet by me…
Calculating birthday probabilities with R instead of math
https://www.andrewheiss.com/blog/2024/05/03/birthday-spans-simulation-sans-math/
Published: May 3, 2024 04:00
Even though I’ve been teaching R and statistical programming since 2017, and despite the fact that I do all sorts of heavily quantitative research, I’m really really bad at probability math.
Like super bad.
The last time I truly had to do set theory and…
Visualizing {dplyr}’s mutate(), summarize(), group_by(), and ungroup() with animations
https://www.andrewheiss.com/blog/2024/04/04/group_by-summarize-ungroup-animations/
Published: April 4, 2024 05:00
I’ve used Garrick Aden-Buie’s tidyexplain animations since he first made them in 2018. They’re incredibly useful for teaching—being able to see which rows left_join() includes when merging two datasets, or which cells end up where when pivoting longer or…
Demystifying causal inference estimands: ATE, ATT, and ATU
https://www.andrewheiss.com/blog/2024/03/21/demystifying-ate-att-atu/
Published: March 21, 2024 04:00
In my causal inference class, I spend just one week talking about the Rubin causal model and potential outcomes. This view of causality argues that for any kind of intervention (passing a new policy, participation in a nonprofit program, taking a specific…
DIY API with Make and {plumber}
https://www.andrewheiss.com/blog/2024/01/12/diy-api-plumber-quarto-ojs/
Published: January 12, 2024 05:00
Complete tutorial and code
See the full tutorial here. You can also see the tutorial’s code here and the code for the final API here.
For years, I’ve tracked all sorts of data about myself (and my family) through Google Forms, Airtable, and devices…