Elias Eythorsson's Avatar

Elias Eythorsson

@eliaseythorsson

Hospitalist. PhD in Epidemiology. Amateur statistician & prognostic modeler. Hope to grow up to be a trialist.

148
Followers
673
Following
19
Posts
08.09.2024
Joined
Posts Following

Latest posts by Elias Eythorsson @eliaseythorsson

To clarify: if an individual moves are they still practically speaking 'at-risk' given your method of collecting data on diagnosi of A or B, i.e after moving would the diagnosis of A or B appear in your data? And can one individual experience a or b multiple Times?

07.03.2026 08:57 πŸ‘ 1 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

I continue to be fascinated by the phenomenon whereby an expert engages with any of the LLMs on their field of expertise and is instantly horrified by the wrong answers, and then goes on to use it for things they are not experts in as though it won’t be just as bad for those.

27.02.2026 14:15 πŸ‘ 3164 πŸ” 933 πŸ’¬ 54 πŸ“Œ 91
Post image

#rstats

28.02.2026 04:32 πŸ‘ 53 πŸ” 4 πŸ’¬ 0 πŸ“Œ 0

Help meΓ° understand the US accreditation system, when I read that someone is a "triple board certified" doctor, am I to understand that they spent roughly a decade as a resident? Or does the system allow for some kind of transfer of credits so that the next residency takes shorter?

27.02.2026 19:49 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

one of the worst things you could do is solve all my problems and take from me my one true joy in life: complaining

23.02.2026 01:07 πŸ‘ 41 πŸ” 6 πŸ’¬ 3 πŸ“Œ 0

We are about to get very cozy with in-person oral exams. Of course that will destroy university finances...

23.02.2026 16:22 πŸ‘ 20 πŸ” 1 πŸ’¬ 1 πŸ“Œ 0
Post image

There's promise in using LLMs for code review, but it's tricky things to make sure it's not overwhelming.

I was looking at this new experimental package by Simon Couch and I really love how it allows you to review code iteratively. #rstats #ai #llms

github.com/simonpcouch/...

23.02.2026 15:15 πŸ‘ 26 πŸ” 6 πŸ’¬ 3 πŸ“Œ 0
screenshot of the reviewer package, taken from Simon Couch's github repository https://github.com/simonpcouch/reviewer

screenshot of the reviewer package, taken from Simon Couch's github repository https://github.com/simonpcouch/reviewer

The reviewer #Rstats package from @simonpcouch.com has an excellent idea: instead of letting an LLM rewrite your file wholesale, it proposes small structured edits with reasons, and you walk through them in a Google Docs-style track-changes UI

22.02.2026 15:31 πŸ‘ 18 πŸ” 4 πŸ’¬ 2 πŸ“Œ 0
Preview
How to interpret hazard ratios Survival analysis of time-to-event outcomes is very commonly performed using Cox’s famous proportional hazards model. The model estimates hazard ratios for the β€˜effects’ of covari…

'How to interpret hazard ratios', with @dominicmagirr.bsky.social and @timpmorris.bsky.social thestatsgeek.com/2026/01/15/h...

15.01.2026 10:52 πŸ‘ 25 πŸ” 9 πŸ’¬ 1 πŸ“Œ 2

v0.3.0 is now available on Firefox, soon to be available on Chrome and Microsoft Edge web stores,

Here's what's new:
You may now turn highlights into annotations!
Bundled pdf.js, to annotate PDFs, click the margin icon on your toolbar, as if it was to open the popup!

🧡

11.02.2026 12:01 πŸ‘ 25 πŸ” 3 πŸ’¬ 4 πŸ“Œ 1

A reminder of one of the loveliest pairs of siblings in the dictionary: β€˜muscle’ and β€˜mouse’. To the Roman imagination, the flexed biceps of a (typically naked) athlete resembled a rodent scuttling under the skin. β€˜Musculus’, in Latin, means β€˜little mouse’.

11.02.2026 10:14 πŸ‘ 1380 πŸ” 249 πŸ’¬ 29 πŸ“Œ 17
Post image Post image

are you using a DEFCON-based strategy to manage bowel motility in hospitalized patients?

having a clear, evidence-based treatment strategy improves efficacy & saves time

you don't need to redesign the wheel for every patient

& helpful to avert thermonuclear war

emcrit.org/ibcc/constip... #EMIMCC

10.02.2026 14:32 πŸ‘ 19 πŸ” 7 πŸ’¬ 2 πŸ“Œ 1

I always find this image a bit misleading because it focus on the year studies are *published*, not when they are *started*.

Here is another version of that figure using the start year of study rather than publication year. Sample sizes in the early 1990s were larger than previous years.

02.02.2026 11:47 πŸ‘ 15 πŸ” 4 πŸ’¬ 3 πŸ“Œ 1

You can specify relative position in ggplot with I(x) I(y).

E.g. annotate("text", x = I(.5), y = I(.5), label = "hello!") will place the text in the middle of the plot.
This, combined with alignment arguments is like 87% of the magic for me.

26.12.2025 07:05 πŸ‘ 111 πŸ” 29 πŸ’¬ 3 πŸ“Œ 5

That is the most insane thing I've read. This is not how it works outside USA

18.01.2026 09:48 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Post image

I launched version 3.0 of my browser extension "Lazy Scholar", a free in-browser research assistant. It opens automatically when you load an academic article.

See: lazyscholar.org/2026/01/10/l...

10.01.2026 15:07 πŸ‘ 49 πŸ” 14 πŸ’¬ 2 πŸ“Œ 1
Steph Curry Finally Finishes Eating Mouthguard

Steph Curry Finally Finishes Eating Mouthguard

Steph Curry Finally Finishes Eating Mouthguard

06.01.2026 22:00 πŸ‘ 3399 πŸ” 363 πŸ’¬ 28 πŸ“Œ 36
Preview
Science & Futurism with Isaac Arthur Science & Futurism with Isaac Arthur explores the long-term future of humanity through space exploration, advanced technology, and big-picture science. Each episode examines how civilization may grow ...

I just discovered this Science & Futurism podcast by this guy named Isaac Arthur. It's just this super smart, seemingly very nice guy with a relaxing voice riffing about cosmology and physics and sci-fi concepts. He puts out an episode like every 3 days and I've enjoyed every episode so far.

04.01.2026 09:20 πŸ‘ 215 πŸ” 18 πŸ’¬ 11 πŸ“Œ 4

Did you know? 2026 is one of the integers which, when divided by the sum of the squares of its digits, does nothing particularly remarkable

31.12.2025 05:28 πŸ‘ 53 πŸ” 8 πŸ’¬ 4 πŸ“Œ 1

We're doing the final sprint, and I think we're able to send the PDF of the forthcoming Bayesian Workflow book to the publisher in the next two weeks (500+ pages), which would mean it would be published some time next year

16.12.2025 17:21 πŸ‘ 123 πŸ” 9 πŸ’¬ 3 πŸ“Œ 3

Doing a bottom-to-top close edit now for errors and clarity. Just about 100 pages to go, not quite yet insane. Like some wetware LLM, I have been trained deeply on the distinctive text stylings of my individual coauthors. Feel I could produce novel utterances in any of their voices. Almost there!

29.12.2025 13:05 πŸ‘ 67 πŸ” 2 πŸ’¬ 4 πŸ“Œ 0
Here’s the original coding line:

    replace event`i’ = 1 if delta_mct`i’ != 0 | spouse_delta_mct`i’ != 0

And here’s the corrected coding:

    replace event`i’ = 1 if (delta_mct`i’ != 0 | spouse_delta_mct`i’ != 0) & delta_mct`i’ != . & spouse_delta_mct`i’ != .

Here’s the original coding line: replace event`i’ = 1 if delta_mct`i’ != 0 | spouse_delta_mct`i’ != 0 And here’s the corrected coding: replace event`i’ = 1 if (delta_mct`i’ != 0 | spouse_delta_mct`i’ != 0) & delta_mct`i’ != . & spouse_delta_mct`i’ != .

I am just learning of this 2015 retraction, adding to my "science as amateur software engineering" files. Seems they classified missing values as obs outcome of interest (divorce). Classified 32% of sample divorced, rather than true 5%. retractionwatch.com/2015/07/21/t...

18.12.2025 09:06 πŸ‘ 73 πŸ” 10 πŸ’¬ 8 πŸ“Œ 4
Models as Prediction Machines: How to Convert Confusing Coefficients into Clear Quantities

Abstract
Psychological researchers usually make sense of regression models by interpreting coefficient estimates directly. This works well enough for simple linear models, but is more challenging for more complex models with, for example, categorical variables, interactions, non-linearities, and hierarchical structures. Here, we introduce an alternative approach to making sense of statistical models. The central idea is to abstract away from the mechanics of estimation, and to treat models as β€œcounterfactual prediction machines,” which are subsequently queried to estimate quantities and conduct tests that matter substantively. This workflow is model-agnostic; it can be applied in a consistent fashion to draw causal or descriptive inference from a wide range of models. We illustrate how to implement this workflow with the marginaleffects package, which supports over 100 different classes of models in R and Python, and present two worked examples. These examples show how the workflow can be applied across designs (e.g., observational study, randomized experiment) to answer different research questions (e.g., associations, causal effects, effect heterogeneity) while facing various challenges (e.g., controlling for confounders in a flexible manner, modelling ordinal outcomes, and interpreting non-linear models).

Models as Prediction Machines: How to Convert Confusing Coefficients into Clear Quantities Abstract Psychological researchers usually make sense of regression models by interpreting coefficient estimates directly. This works well enough for simple linear models, but is more challenging for more complex models with, for example, categorical variables, interactions, non-linearities, and hierarchical structures. Here, we introduce an alternative approach to making sense of statistical models. The central idea is to abstract away from the mechanics of estimation, and to treat models as β€œcounterfactual prediction machines,” which are subsequently queried to estimate quantities and conduct tests that matter substantively. This workflow is model-agnostic; it can be applied in a consistent fashion to draw causal or descriptive inference from a wide range of models. We illustrate how to implement this workflow with the marginaleffects package, which supports over 100 different classes of models in R and Python, and present two worked examples. These examples show how the workflow can be applied across designs (e.g., observational study, randomized experiment) to answer different research questions (e.g., associations, causal effects, effect heterogeneity) while facing various challenges (e.g., controlling for confounders in a flexible manner, modelling ordinal outcomes, and interpreting non-linear models).

Figure illustrating model predictions. On the X-axis the predictor, annual gross income in Euro. On the Y-axis the outcome, predicted life satisfaction. A solid line marks the curve of predictions on which individual data points are marked as model-implied outcomes at incomes of interest. Comparing two such predictions gives us a comparison. We can also fit a tangent to the line of predictions, which illustrates the slope at any given point of the curve.

Figure illustrating model predictions. On the X-axis the predictor, annual gross income in Euro. On the Y-axis the outcome, predicted life satisfaction. A solid line marks the curve of predictions on which individual data points are marked as model-implied outcomes at incomes of interest. Comparing two such predictions gives us a comparison. We can also fit a tangent to the line of predictions, which illustrates the slope at any given point of the curve.

A figure illustrating various ways to include age as a predictor in a model. On the x-axis age (predictor), on the y-axis the outcome (model-implied importance of friends, including confidence intervals).

Illustrated are 
1. age as a categorical predictor, resultings in the predictions bouncing around a lot with wide confidence intervals
2. age as a linear predictor, which forces a straight line through the data points that has a very tight confidence band and
3. age splines, which lies somewhere in between as it smoothly follows the data but has more uncertainty than the straight line.

A figure illustrating various ways to include age as a predictor in a model. On the x-axis age (predictor), on the y-axis the outcome (model-implied importance of friends, including confidence intervals). Illustrated are 1. age as a categorical predictor, resultings in the predictions bouncing around a lot with wide confidence intervals 2. age as a linear predictor, which forces a straight line through the data points that has a very tight confidence band and 3. age splines, which lies somewhere in between as it smoothly follows the data but has more uncertainty than the straight line.

Ever stared at a table of regression coefficients & wondered what you're doing with your life?

Very excited to share this gentle introduction to another way of making sense of statistical models (w @vincentab.bsky.social)
Preprint: doi.org/10.31234/osf...
Website: j-rohrer.github.io/marginal-psy...

25.08.2025 11:49 πŸ‘ 1007 πŸ” 288 πŸ’¬ 47 πŸ“Œ 22
Post image

the world has changed

13.12.2025 16:08 πŸ‘ 9048 πŸ” 2184 πŸ’¬ 96 πŸ“Œ 147
Preview
Evaluation of performance measures in predictive artificial intelligence models to support medical decisions: overview and guidance Numerous measures have been proposed to illustrate the performance of predictive artificial intelligence (AI) models. Selecting appropriate performance measures is essential for predictive AI models i...

Our guidance regarding performance measures for medical AI models is finally out!

- Stop bashing AUROC, although it does not settle things
- Calibration and clinical utility are key
- Show risk distributions
- Classification statistics (e.g. F1) are improper

www.thelancet.com/journals/lan...

13.12.2025 14:03 πŸ‘ 48 πŸ” 25 πŸ’¬ 2 πŸ“Œ 1

My love for em dashes is as old as the hills and as mighty as my inability to make a transition between thoughts literally any other way and I will be damned if I let the clankers take that from me

10.12.2025 03:00 πŸ‘ 1933 πŸ” 231 πŸ’¬ 49 πŸ“Œ 23
screenshot of a google search for β€œ250 ml to cups” where the results show 250 cubic miles is equal to 4.404 x 10^15 cups

screenshot of a google search for β€œ250 ml to cups” where the results show 250 cubic miles is equal to 4.404 x 10^15 cups

thank you yes that answers my question

05.12.2025 04:08 πŸ‘ 45 πŸ” 3 πŸ’¬ 4 πŸ“Œ 0
Post image
02.12.2025 02:34 πŸ‘ 9972 πŸ” 2475 πŸ’¬ 34 πŸ“Œ 35

If you have a manuscript ready to submit in mid-December do you:

a) Submit in December (when editors are bombarded with manuscripts)
b) Hold off until mid-January to let the editors have a damn holiday already

28.11.2025 11:30 πŸ‘ 1 πŸ” 1 πŸ’¬ 2 πŸ“Œ 0

{DAGassist} let's you process a DAG and estimate models giving {dagitty} input and baseline model #CausalSky #rstats
cran.r-project.org/web/packages... I think {ggdag} has more to offer for analysis of a DAG, while {DAGassist} is a one-stop package for classifying variables and getting estimates

30.10.2025 19:16 πŸ‘ 18 πŸ” 5 πŸ’¬ 0 πŸ“Œ 0