Martin Modrák
Martin Modrák
@modrakm.bsky.social
Biostatistics/bioinformatics at Charles University, 2nd faculty of Medicine. Bayesian in practice, but not a fan of Bayesian epistemology. Main on fedi: https://bayes.club/@modrak_m
Blog: https://martinmodrak.cz
Reposted by Martin Modrák
Lighting the Bayesian bat signal: #stan #rstats #statssky

A latent construct C is informed by multiple variables X like so:

X₁, X₂ ~ C

I want to use C to also predict Y,

Y ~ C

but without C being informed by Y. What's the cleanest way to implement this in Stan?
February 7, 2026 at 9:49 AM
Reposted by Martin Modrák
I'm happy to announce a new and improved version of my quarto revealjs extension that interfaces with roughnotation

More annotation types, fragment support, works with flourish extension to allow for annotations of code chunks, and reverse animations are all here

github.com/EmilHvitfeld...
#quarto
February 5, 2026 at 8:14 PM
Reposted by Martin Modrák
I am doing a short workshop in this symposium (quoted below) for folks in and around Leipzig. Here's the abstract. I really indulged myself with this one.

A Guerilla Approach to Scientific Workflow:
February 4, 2026 at 12:05 PM
Reposted by Martin Modrák
As far as I'm aware, this is the first time anyone has shown that innocuous data-dependent reporting practices can bias meta-analyses (please let know if I'm wrong!), so we should be very careful interpreting big metascientific meta-analyses going forward. 9/x
February 2, 2026 at 2:56 PM
Reposted by Martin Modrák
Hello friends. I'm looking for an existing SOP describing how CTUs deal with database lock when a blinded RCT is followed by an open label extension study where all patients can be offered the active tx once their planned follow-up in the RCT completes. Thanks! #clinicaltrials
February 2, 2026 at 8:34 PM
Reposted by Martin Modrák
New draft: "Decline effects, statistical artifacts, and a meta-analytic paradox". In this manuscript I show how a common practice in meta-analysis (eg the 2015 Open Science Collaboration) creates artifactual signatures of poor scientific behavior. PDF: raw.githubusercontent.com/richarddmore... 1/x
February 2, 2026 at 2:56 PM
Reposted by Martin Modrák
It's a beautiful plot, but it's terribly misleading about the impact of pre-registration. More recent studies (with higher sample sizes) find very little impact of pre-registration on the publication of null results.

Here's a thread with some references (1/N)
@scientificdiscovery.dev Hi, I am creating a new version of my free online MOOC, and would like to use this picture, of which you have the copyright. Is it ok if I put it in a slide?
February 2, 2026 at 1:47 PM
Reposted by Martin Modrák
#rstats bat signal:

If any of y'all have experience with multilevel multinomial logistic regression, with {brms}, Kruschke and I could use your help. This is your chance to influence the upcomming textbook. discourse.mc-stan.org/t/problem-in...
Problem in multilevel (hierarchical) multinomial logistic regression (with brms)
I have posted a teaser of the issue at my blog, copied below. The data The predicted variable is a categorical response, named resp with levels ‘1’, ‘2’, ‘3’, and ‘4’ (nominal labels, not numerical...
discourse.mc-stan.org
January 30, 2026 at 3:02 PM
Reposted by Martin Modrák
Bayesian Workflow by
Andrew Gelman, Aki Vehtari, @rmcelreath.bsky.social with @danpsimpson.bsky.social, @charlesm993.bsky.social, @yulingy.bsky.social, Lauren Kennedy, Jonah Gabry, @paulbuerkner.com, @modrakm.bsky.social, @vianeylb.bsky.social

(in production, estimated copy-editing time 6 weeks)
January 26, 2026 at 8:18 AM
Reposted by Martin Modrák
Wrote a summary of a great keynote by @zey.bsky.social at NeurIPS, arguing that we’re having the wrong nightmares about AI: not AGI or superhuman benchmarks, but good-enough genAI at scale threatens "load bearing frictions" society relies on to signal effort, authenticity, sincerity, credibility.
Zeynep Tufecki on having the wrong nightmares about generative AI
I was writing a blog post where I was going to reference Zeynep Tufecki’s 2025 NeurIPS keynote, and realized there isn’t a solid synopsis online.
open.substack.com
January 9, 2026 at 4:42 PM
Reposted by Martin Modrák
I ignored the strip.clip argument in #ggplot2 for way too long 😲

Combined with a small negative margin tweak, you can place facet labels inside each panel. A tiny trick that makes small multiples feel so much cleaner.

🔵 no manual coordinates
🔵 inherits theme styling
🔵 scales nicely when resizing
December 12, 2025 at 12:51 PM
Reposted by Martin Modrák
You can see some of these stereotypes - the simple, morally pure countryside vs. the morally compromised, inauthentic city - play out in Greek and Roman literature.

So this is a very old idea that recurs regularly.
Do other countries have this weird notion that you’re not a “real” representative of the nation if you live in an urban center? Like do the French say Parisians aren’t really French? Are you considered not a real German if you live in Berlin? Or is this mainly a weird American thing?
January 1, 2026 at 7:24 PM
Reposted by Martin Modrák
‪It has a name now 😜

Many thanks to Ken for agreeing to put his good name to my...artwork. The image is in the public domain (CC 0), but citations to the linked documents are warmly welcomed.

zenodo.org/records/1808...

pubmed.ncbi.nlm.nih.gov/24452418/
December 29, 2025 at 11:19 AM
Reposted by Martin Modrák
I'd like to propose the following norm for peer review of papers. If a paper shows clear signs of LLM-generated errors that were not detected by the author, the paper should be immediately rejected. My reasoning: 1/ #ResearchIntegrity
December 28, 2025 at 6:23 AM
Reposted by Martin Modrák
We have weirdly benefitted from the fact that all the 2010s data science boom Medium posts littering the training corpus were so consistently terrible.
December 18, 2025 at 2:10 AM
Reposted by Martin Modrák
StanCon 2026 registration and abstract submission are now open
statmodeling.stat.columbia.edu/2025/12/11/s...
StanCon 2026 registration and abstract submission are now open | Statistical Modeling, Causal Inference, and Social Science
statmodeling.stat.columbia.edu
December 11, 2025 at 1:46 PM
Reposted by Martin Modrák
This could be very useful for R -> InkScape and R -> Illustrator workflows! #rstats

See the vignette: cran.r-project.org/web/packages...
December 11, 2025 at 2:50 PM
Reposted by Martin Modrák
I'm teaching Statistical Rethinking again starting Jan 2026. This time with live lectures, divided into Beginner and Experienced sections. Will be a lot more work for me, but I hope much better for students.

I will record lectures & all will be found at this link: github.com/rmcelreath/s...
December 9, 2025 at 1:58 PM
You will be visited by 3 spirits
December 9, 2025 at 9:36 PM
Reposted by Martin Modrák
You will be visited by 3 spirits
December 9, 2025 at 4:29 PM
Reposted by Martin Modrák
as awful as this is, these examples kinda make me feel giddy and validated, given how i normally feel about our current peer review practices. my personal experience unfortunately has never been consistent with academics' general regard of peer review as a net benefit despite its flaws.
Springer-Nature statement

“Whilst the details of peer review are confidential, we can confirm that the article underwent two rounds of review from two independent peer reviewers, supporting an accept decision.”

How am I now expected to believe that two people looked at the paper twice and DGAF?
Riding the Autism Bicycle to Retraction Town
Does anyone *really* know their Factor Fexcectorn?
nobreakthroughs.substack.com
November 28, 2025 at 5:14 PM
Reposted by Martin Modrák
This touches on a few of the biggest sources of low morale for me:

- flood of AI slop lands in my inbox as peer review requests
- my critical reviews of said AI slop are then ignored by editors at Journals that won't give my work consideration
- all while I'm expected to ⬆️ research output
It's easy to see shoddy research as a bad actor problem. But if AI slop like this can make it through editors and peer reviewers, it means there are systemic problems at work. And I'd argue that at least part of the problem is the overwork culture in academia-- pressure to do more while caring less.
"Runctitiononal features"? "Medical fymblal"? "1 Tol Line storee"? This gets worse the longer you look at it. But it's got to be good, because it was published in Nature Scientific Reports last week: www.nature.com/articles/s41... h/t @asa.tsbalans.se
November 28, 2025 at 5:43 PM
Reposted by Martin Modrák
A thread of directed acyclic graphs (DAGs) that look like record covers... because that's EXACTLY what the world needs

1. Huey Lewis and the News: link.springer.com/chapter/10.1...
November 28, 2025 at 11:36 AM
Reposted by Martin Modrák
Whenever I see campaigns such as this, I'm reminded of the 2021 tweet from Surrey Poilce
November 27, 2025 at 9:37 AM
Reposted by Martin Modrák
Anyone have experience analysing periodicity (eg with Fourier) in data with gaps/missings (eg weekends, holidays) - this is in a health context if it helps? Looking for guides to pitfalls, etc
November 26, 2025 at 12:00 PM