Jess Graves's Avatar

Jess Graves

@jessgraves.bsky.social

๐Ÿงฎ Statistics & data science ๐Ÿ’Š Clinical trials & R&D & Epidemiology ๐Ÿ’ป R enthusiast ๐Ÿ‘ฉโ€๐Ÿ’ป Stats @ loyal.com https://jesslgraves.github.io

313 Followers  |  333 Following  |  344 Posts  |  Joined: 20.11.2024  |  2.1924

Latest posts by jessgraves.bsky.social on Bluesky

Post image

Hooray! See y'all next year in my hometown! ๐ŸŽ #positconf #rstats #htx

18.09.2025 21:33 โ€” ๐Ÿ‘ 12    ๐Ÿ” 2    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

๐Ÿซก yessir! Htown assemble๐Ÿซก

(Thanks for tagging me, this is how I learned posit conf is coming to Houston and Iโ€™m so excited!)

19.09.2025 10:25 โ€” ๐Ÿ‘ 4    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Manipulated theatrical release poster of "The men who stare at goats" which now reads "the men who stare at coefficients"

Top shows the profiles of George Clooney, Jeff Bridges, Ewan McGregor, Kevin Spacey and a goat.

Below the text: the men who stare at coefficients with the silhouette of a man sitting in front of a computer screen, and the silhouette of a goat

Manipulated theatrical release poster of "The men who stare at goats" which now reads "the men who stare at coefficients" Top shows the profiles of George Clooney, Jeff Bridges, Ewan McGregor, Kevin Spacey and a goat. Below the text: the men who stare at coefficients with the silhouette of a man sitting in front of a computer screen, and the silhouette of a goat

You're very welcome @vincentab.bsky.social

P.S. Check out our preprint on an alternative to staring at coefficients: j-rohrer.github.io/marginal-psy...

17.09.2025 13:31 โ€” ๐Ÿ‘ 75    ๐Ÿ” 16    ๐Ÿ’ฌ 2    ๐Ÿ“Œ 3
Post image

Whoaโ€”my book is up for pre-order!

๐Œ๐จ๐๐ž๐ฅ ๐ญ๐จ ๐Œ๐ž๐š๐ง๐ข๐ง๐ : ๐‡๐จ๐ฐ ๐ญ๐จ ๐ˆ๐ง๐ญ๐ž๐ซ๐ฉ๐ซ๐ž๐ญ ๐’๐ญ๐š๐ญ & ๐Œ๐‹ ๐Œ๐จ๐๐ž๐ฅ๐ฌ ๐ข๐ง #Rstats ๐š๐ง๐ #PyData

The book presents an ultra-simple and powerful workflow to make sense of ยฑ any model you fit

The web version will stay free forever and my proceeds go to charity.

tinyurl.com/4fk56fc8

17.09.2025 19:49 โ€” ๐Ÿ‘ 265    ๐Ÿ” 84    ๐Ÿ’ฌ 9    ๐Ÿ“Œ 4
Preview
Splines, B-splines, P-splines, and a disapproving kitten โ€“ Notes from a data witch No, I do not care about splines. But I am trying to learn about GAMLSS regression, and yes, it is to this dark place that this topic has taken me

At the risk of stretching the imagination beyond the limits of human endurance, the reader is asked to pretend that the author is interested in splines #rstats

08.09.2025 01:41 โ€” ๐Ÿ‘ 68    ๐Ÿ” 21    ๐Ÿ’ฌ 7    ๐Ÿ“Œ 2

Damn! We are truly blessed to receive such quality, detail and rigor from you โ€” and on a subject youโ€™re not even that interested in!!๐Ÿ”ฅ๐Ÿ”ฅ

08.09.2025 13:15 โ€” ๐Ÿ‘ 3    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Preview
Remove or Hide Legends in ggplot2 โ€“ Theme, Guides, Scales & Tips - Data Viz with Python and R Learn how to selectively remove one or more specific legends in a plot made with ggplot2 using guides() function

Selectively Remove or Hide Legends in ggplot2 datavizpyr.com/selectively-... #dataviz #rstats

02.09.2025 15:57 โ€” ๐Ÿ‘ 5    ๐Ÿ” 4    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 1
03.09.2025 00:49 โ€” ๐Ÿ‘ 23    ๐Ÿ” 4    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 1

๐Ÿธ๐Ÿธ๐Ÿธ

29.08.2025 00:46 โ€” ๐Ÿ‘ 9    ๐Ÿ” 1    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
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 โ€” ๐Ÿ‘ 942    ๐Ÿ” 283    ๐Ÿ’ฌ 49    ๐Ÿ“Œ 19

๐Ÿ“Œ

20.08.2025 14:00 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Oh boy was she still hungry lol!

20.08.2025 13:57 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Lilโ€™ Muncher (official name lol) update:
1) LM abandoned his post at 50% consumption but
2) Found a friend, LM2
3) And many more ๐Ÿ˜ตโ€๐Ÿ’ซ

Consumption rates have become exponential and sadly all (visible) Munch Bunchers had to be evicted.

20.08.2025 13:54 โ€” ๐Ÿ‘ 2    ๐Ÿ” 1    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

@mackaszechno.bsky.social @econmaett.github.io LMAO

I can debug my code, but not my garden!

19.08.2025 15:25 โ€” ๐Ÿ‘ 2    ๐Ÿ” 2    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

I do intend to let it keep on keepinโ€™ on at least for a little while haha. So a name does seem appropriate! Iโ€™ll update according lol.

19.08.2025 13:56 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Preview
a child is laying on the ground in a wooden box ALT: a child is laying on the ground in a wooden box

Physically, I am at my desk. Mentally, I am here:

19.08.2025 13:46 โ€” ๐Ÿ‘ 2    ๐Ÿ” 1    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

*leaf ๐Ÿ™ƒ๐Ÿซ 

19.08.2025 13:34 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Little muncher < 24 hrs later:

1) still on the same lead (! I was surprised by this!)
2) leaf consumption at 50%

19.08.2025 12:58 โ€” ๐Ÿ‘ 9    ๐Ÿ” 3    ๐Ÿ’ฌ 2    ๐Ÿ“Œ 1

Ugh I wish I had chickenssssss ๐Ÿ˜ญ

19.08.2025 12:55 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Preview
a woman is standing in front of an american flag with her arms outstretched and making a funny face . ALT: a woman is standing in front of an american flag with her arms outstretched and making a funny face .

I salute thee, punster!

19.08.2025 02:51 โ€” ๐Ÿ‘ 3    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Post image

Soon to become this absolute beast

18.08.2025 19:52 โ€” ๐Ÿ‘ 4    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Carolina Sphinx caterpillar hanging upside down on a tomato leaf

Carolina Sphinx caterpillar hanging upside down on a tomato leaf

Iโ€™m supposed to hate this little cutie, because it will eat up my tomato plant butโ€ฆ. Come onnnnn look at it ๐Ÿฅน๐Ÿฅน๐Ÿฅน๐Ÿฅน

18.08.2025 19:48 โ€” ๐Ÿ‘ 9    ๐Ÿ” 2    ๐Ÿ’ฌ 4    ๐Ÿ“Œ 1
Preview
An R package for working with generalized additive models Graceful 'ggplot'-based graphics and utility functions for working with generalized additive models (GAMs) fitted using the 'mgcv' package.

๐Ÿš€ gratia 0.11.0 is out!

Now has a paper in JOSS โ€” please cite ๐Ÿ“„ doi.org/10.21105/jos...

Experimental parallel processing โšก

New assemble() for building plots ๐ŸŽจ

Better support for complex families + new diagnostics ๐Ÿงช

Lots of bug fixes + polish โœจ

๐Ÿ‘‰ gavinsimpson.github.io/gratia/

#Rstats

18.08.2025 18:32 โ€” ๐Ÿ‘ 187    ๐Ÿ” 64    ๐Ÿ’ฌ 3    ๐Ÿ“Œ 1

๐Ÿ“Œ

15.08.2025 19:32 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

*stack lol

14.08.2025 13:27 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Preview
Is there any measure of Effect Size for differences assessed with Dunnett method? I know I could use the effect size pairwise, but I have a longitudinal data, where subjects were measures multiple times and there exists ICC &gt; 0.5. I guess the pooled SD may be altered by this ...

Thereโ€™s a slack thread / comment on this that might be helpful? Not sure of your use case, but they warn that the pooled SD is meant to capture global variability in Y & using pairwise SDs for pairwise comparisons could mean effects arenโ€™t broadly โ€œstandardizedโ€

stats.stackexchange.com/a/477298

14.08.2025 13:26 โ€” ๐Ÿ‘ 3    ๐Ÿ” 0    ๐Ÿ’ฌ 2    ๐Ÿ“Œ 0

Yes!

14.08.2025 00:13 โ€” ๐Ÿ‘ 5    ๐Ÿ” 1    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Reminder that all three books I've co-authored are freely available online for non-commercial use (and the fourth will be, too)

11.08.2025 17:44 โ€” ๐Ÿ‘ 154    ๐Ÿ” 49    ๐Ÿ’ฌ 4    ๐Ÿ“Œ 1

Ooooh Cure is one of my favorites.

09.08.2025 20:12 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Photo of me holding a printed copy of my book

Photo of me holding a printed copy of my book

Draft cover art

Draft cover art

Two -page spread showing graphs text and code

Two -page spread showing graphs text and code

Two -page spread showing graphs text and code

Two -page spread showing graphs text and code

#rstats So chuffed! I printed the first PDF copy of my book to see what it might look like in print! It will be printed in full color!

Visualizing Multivariate Data and Models in R

On the whole, looks good, but lots of tweaking to do.
It weighs in at ~440 pgs., so perhaps some cutting needed.

09.08.2025 17:04 โ€” ๐Ÿ‘ 77    ๐Ÿ” 16    ๐Ÿ’ฌ 5    ๐Ÿ“Œ 0

@jessgraves is following 20 prominent accounts