Caveat: tabulate() only works for single vectors, so you can't replace sth like table(1:4, c("a", "a", "b", "b")).
Bonus points: You easily get 0 counts if you expect numbers from 1:nbins, i.e.:
> tabulate(c(3, 1, 3, 3, 3), nbins = 4)
[1] 1 0 4 0
2/2
01.10.2025 13:23 β π 4 π 0 π¬ 0 π 0
IF YOU CAN, REPLACE TABLE() WITH TABULATE() IN YOUR #rstats CODE!
data <- sample(1:3, 100, replace = TRUE)
microbenchmark::microbenchmark(table(data), tabulate(data), times = 10000)
I'm almost angry at how much faster this is, and why I was today years old when I learned this π€¬
1/2
01.10.2025 13:23 β π 5 π 1 π¬ 2 π 0
This is extremely exciting!
(But also with the release party being on October 3rd, a missed opportunity to use a "The Life of a Showgirl" reference.)
30.09.2025 18:47 β π 2 π 1 π¬ 1 π 0
Is this ... a very early preregistration?
29.09.2025 16:56 β π 1 π 0 π¬ 0 π 0
I also learned a fair deal of Spanish in school (read Don Quijote and all), but couldn't even do small talk nowadays. That happens, and it's normal (albeit sad). I fell into the "What?! But EVERYBODY should know THIS!" trap in the past, but learned that it's a very unhelpful trap to fall into.
2/2
29.09.2025 16:35 β π 0 π 0 π¬ 0 π 0
Sure, I've learned this in school. I'm a nerdy nerd with degrees in psychology, working as a scientist, well-trained in statistics (not so much physics). When I see these videos, all I remember is that it's not surprising that this happens, but I wouldn't be able to explain it properly.
1/2
29.09.2025 16:35 β π 0 π 0 π¬ 1 π 0
To be fair, I've had occasional situations like these with students BEFORE the rise of LLMs ...
29.09.2025 16:25 β π 0 π 0 π¬ 0 π 0
Line 1: warning("Hey, thought about restarting R before running this script? Btw, you might wanna set up a clean project for this, cause, you know, if you still use setwd(), Jenny Bryan will personally set your computer on fire. And do you know about dependency management? Sorry if you already do!")
26.09.2025 08:36 β π 7 π 0 π¬ 1 π 0
Zebra stripes confuse biting flies, causing them to abort their landings
Coat pattern helps zebras and horses evade dangerous insects
Don't know why the zebra paper won, though? It's been tested in horses before (Caro et al.); the horse community has been using blankets with zebra stripes for years. Sure, we desparetly need more replications, but why the Ig Nobel prize for a conceptual replication?
www.science.org/content/arti...
19.09.2025 12:43 β π 8 π 2 π¬ 1 π 0
Had the opposite experience lately. Daycare warned me: "In case tells any stories about today ... don't be confused ... he was very excited about the document shredder."
Unfortunately, he DIDN'T mention it, so I will never know why they were so worried what weird things he might say.
29.08.2025 12:50 β π 1 π 0 π¬ 0 π 0
Wooooooow, where is this?! π±
25.08.2025 07:40 β π 1 π 0 π¬ 1 π 0
"So I leap from the gallows and I levitate down your street
Crash the party like a record scratch as I scream
'Who's afraid of little old me?'
You should be"
20.08.2025 18:08 β π 0 π 0 π¬ 0 π 0
(Disclaimer: Of course, results will vary if the data are not balanced, or are funky in any other way, but in this simple case, mixed model/t-test estimates and p-values will be identical.)
20.08.2025 10:16 β π 1 π 0 π¬ 0 π 0
t_test <- t.test(t1, t2, paired = TRUE)
mm <- lmer(value ~ time + (1 | id), data = data)
mm_summary <- summary(mm)
# estimates
abs(mm_summary$coefficients["timet2", "Estimate"])
abs(t_test$estimate)
# pval
mm_summary$coefficients["timet2", "Pr(>|t|)"]
t_test$p.value
2/2
20.08.2025 10:16 β π 1 π 0 π¬ 1 π 0
And here's a paired t-test versus a mixed model with a random intercept in R:
library(lmerTest)
n <- 1000
t1 <- rnorm(n)
t2 <- t1 + rnorm(n)
data <-
data.frame(
id = paste0("ID-", 1:n),
t1 = t1,
t2 = t2
)
data <-
data %>%
pivot_longer(c(t1, t2), names_to = "time")
1/2
20.08.2025 10:16 β π 2 π 0 π¬ 1 π 0
I once had a student telling me that she hates t-tests, but prefers linear mixed models. Boy, did I have news for her ...
20.08.2025 09:46 β π 2 π 0 π¬ 1 π 0
"Nagel" ist German for "nail", which is why this is the first GIF to pop up, once again reminding me how lucky I was to be able to assimilate my husband's last name.
15.08.2025 11:23 β π 2 π 0 π¬ 0 π 0
I am very proud of my Bluesky feed, which combines magic Quarto plugins with "The Life of a Showgirl" references.
14.08.2025 12:03 β π 5 π 1 π¬ 0 π 0
Joke aside, we recently discussed in our journal club about how there's no nominal rate of successful replication, i.e., the replication rates we're seeing might be just what to expect. I don't buy that, BUT there's an interesting discussion here about base rates of theories being correct etc. etc.
23.07.2025 06:36 β π 2 π 0 π¬ 1 π 0
I think it says a lot about how dominant RStudio is as an IDE that people frequently mistake it for the actual programming language. Sure, many don't even think about the difference between a language and an IDE, but you'd never see someone write "we used Spyder for data analysis" (I hope).
17.07.2025 07:38 β π 3 π 0 π¬ 0 π 0
π
10.07.2025 08:31 β π 3 π 0 π¬ 0 π 0
I can see past the questionable artistic choices if they can also give me the data normalized by the overall consumption of each food item.
08.07.2025 09:09 β π 15 π 0 π¬ 1 π 0
preprint alert π¨
1/ Can we accurately detect sequential replay in humans using Temporally Delayed Linear Modelling (#TDLM)? In our recent study, we could not find any replay and decided to dig deeper by running a hybrid simulation with surprising results. Link to preprint & details below π
16.06.2025 07:22 β π 55 π 27 π¬ 2 π 2
Ohhh, thanks for reminding me that I still have this bookmarked! (Have been hesitating to order it, though, because it would increase my pile of shame, i.e., unread books.)
10.06.2025 19:40 β π 3 π 0 π¬ 1 π 0
Soooo ... you could potentially set up an automated pipeline on GitHub/GitLab/whatever where you push the bio updates to a repo, and then they get implemented here via some API magic. Would very likely be a massive waste of time, but, hypothetically speaking ...
05.06.2025 08:11 β π 1 π 0 π¬ 0 π 0
ReyβOsterrieth complex figure - Wikipedia
If I didn't know the test was designed in the 1940ies, I'd almost say it looks like a drawing of the ReyβOsterrieth complex figure, a test where you have to draw a comple figure (duh!) after memorizing it.
en.wikipedia.org/wiki/Rey%E2%...
23.05.2025 11:14 β π 1 π 0 π¬ 0 π 0
It's bonkers that in academic science we spend hours obsessing over the wording of a paper, but often only one person has seen the code that produced the results! 2/N
16.04.2025 13:23 β π 200 π 55 π¬ 7 π 10
π Join Us for the Next Mannheim Open Science Meetup! π
π¬ Topic: ARIADNE β A Scientific Navigator to Find Your Way Through the Research Resource Labyrinth
π Speaker: ΓaΔatay GΓΌrsoy, Central Institute of Mental Health
π
Date & Time: April 30, 2025, 3:00 PM
π Location: Register online lnkd.in/exErgJfy
20.03.2025 12:04 β π 13 π 5 π¬ 2 π 2
CTO at a specialty insurance company. Perpetual cocktail party host, open source fan, econometrician, agricultural economist, and OReilly Author.
postdoc studying learning and memory in kids and teens with Cate Hartley at NYU. https://susanbenear.github.io/
Cognitive neuroscientist interested in neuroeconomics, decision-making, social (neuro)science and oysters
https://www.psychologie.hhu.de/en/research-teams/comparative-psychology
Cognitive neuroscientist with many interests, including why our stomachs churn when we feel disgust. I also write books on programming; teach Python, statistics, and machine learning; and develop open-source software.
https://www.dalmaijer.org
PhD candidate in cognitive neuroscience
working memory | MEG | she/her
πΊοΈ CoBIC, frankfurt
Code, Data, Analysis, Teaching, Running, Breadmaking ... https://dirk.eddelbuettel.com
"God doesn't know, and the devil isn't telling." xkcd.com/2867/
Die Interessengruppe Offene & Reproduzierbare Forschung (IGOR) in der @dgps.bsky.social Fachgruppe Biologische Psychologie & Neuropsychologie.
Website: https://www.dgps.de/fachgruppen/fgbi/aktivitaeten-der-fachgruppe/igor/
not very committed to sparkle motion
Doctoral Candidate at Heidelberg University
Studying the effects of exercise on sleep and motor memory
M.A. Sports Science
Currently working in #Shanghai | PhD from MRC-CBU/Cambridge Uni | Gates Cambridge | interested in neuroscience of memory | you can call me Alex
Assistant Professor at Warwick University. Psycholinguist interested in language and memory. Everything word-related. Previously at York and Oxford.
https://scholar.google.com/citations?user=AeqBP58AAAAJ&hl=en
Working at @ZPID, focusing on #MetaResearch, #preregistration & the #reproducibility of #eyetracking. #OpenScience enthusiast! Views expressed here are mine.
Biochemiker, setze mich beruflich fΓΌr soziale Arbeitsbedingungen und gegen Machtmissbrauch in Academia ein.
#IchBinHanna
!Reform Academia Now!
Private Account
Computational disease ecologist. Executive Director of @ropensci.org. Co-founder of https://grant-witness.us/. Brooklynite. One Health, open science, #RStats, cities, civics, bikes, fun, love, progress + justice. he/him
Epidemiologist/mathematician. Professor at London School of Hygiene & Tropical Medicine. Author of The Rules of Contagion and The Perfect Bet. Views own.
New book Proof: The Uncertain Science of Certainty available now: proof.kucharski.io
Official account of the 50th Annual Conference on Psychology and the Brain (www.pug2025.org), held from June 18β21, 2025 @uniwuerzburg.bsky.social
Professor of Psychology & Human Values at Princeton | Cognitive scientist curious about technology, narratives, & epistemic (in)justice | They/She π³οΈβπ
www.crockettlab.org