Magnus Johansson's Avatar

Magnus Johansson

@pgmj.bsky.social

PhD & lic. psychologist. Research specialist at Karolinska Institutet. R package for Rasch psychometrics: pgmj.github.io/easyRasch/ #openscience, #prevention, #psychometrics, #rstats, #photo

2,362 Followers  |  1,314 Following  |  327 Posts  |  Joined: 26.09.2023  |  2.2509

Latest posts by pgmj.bsky.social on Bluesky

Preview
Introduction to geomtextpath geomtextpath

You just need to install the `geomtextpath` package. Here is an intro vignette: allancameron.github.io/geomtextpath...

02.12.2025 15:18 โ€” ๐Ÿ‘ 8    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Two plots side by side showing time in weeks on x axis and probability of returning to work on the y axis. The left hand plot shows the trajectory of two groups (self-efficacy improved or not improved), while the right hand plot shows the probability difference between the two groups.

Two plots side by side showing time in weeks on x axis and probability of returning to work on the y axis. The left hand plot shows the trajectory of two groups (self-efficacy improved or not improved), while the right hand plot shows the probability difference between the two groups.

geomtextpath can really help make a plot easier to interpret. Nice to avoid using a legend. #rstats #dataviz

02.12.2025 13:09 โ€” ๐Ÿ‘ 137    ๐Ÿ” 20    ๐Ÿ’ฌ 3    ๐Ÿ“Œ 2

Och รฅterinfรถra arvsskatt nรคr en rimligt hรถg nivรฅ รถverstigs, vilket rent ideologiskt รคven borde gรฅ i linje med liberala tankegรฅngar.

30.11.2025 19:58 โ€” ๐Ÿ‘ 16    ๐Ÿ” 1    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Preview
Analyses of โ€˜change scoresโ€™ do not estimate causal effects in observational data AbstractBackground. In longitudinal data, it is common to create โ€˜change scoresโ€™ by subtracting measurements taken at baseline from those taken at follow-u

Unless it's observational data? academic.oup.com/ije/article/...

27.11.2025 20:24 โ€” ๐Ÿ‘ 3    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Comic. Panels up to the 10-year point are grayed out. New panels since the Ten Years comic, which chronicles the first ten years of PERSON 1's journey with cancer: (1) [two people in bed] PERSON 1 (woman): One more chapter? PERSON 2 (man): Donโ€™t we both have to get up early? PERSON 1: Nnnnnggggh PERSON 2: Sure, good point. (2) [many people wearing masks, walking while looking at graphs on their phones] (3) [birds landing on people] PERSON 2 in beanie and scarf: Hah! They like *my* seeds best. PERSON 1 in scarf holding phone with a bird sitting on it: Wait, how do I take a picture of this one? (4) [two people rowing boats with tree landscape] (5) [Person 1 carries overflowing stack of things to Person 2 in bed] PERSON 1: I brought you honey lemon tea, more pillows, a cinnamon roll, Tylenol, another blanket, aโ€“ PERSON 2: It was just Appendicitis, Iโ€™m reallyโ€“ PERSON 1: *It is my turn to take care of you and I am going to do it right!* (6) [Two people in car] (7) [still in car) PERSON 1: Oh my god. PERSON 2: Oh my god. (8) [car driving] PERSON 1: Pull over! PERSON 2: I am! (9) [both people get out of car] (10) [Large colored panel of aurora borealis over water with both people looking on] (11) [Person 1 sits against tree while Person 2 lies on the ground] PERSON 1: Fifteen years. No sign of the cancer. (12) I *am* having some weird symptoms. Joint pain. Fatigue. I think Iโ€™m losing my close-up vision. PERSON 2: Yeah. Me too. (13) PERSON 2: I think weโ€™re getting old. (14) PERSON 1: I guess thatโ€™s okay. PERSON 2: Itโ€™s all I wanted.

Comic. Panels up to the 10-year point are grayed out. New panels since the Ten Years comic, which chronicles the first ten years of PERSON 1's journey with cancer: (1) [two people in bed] PERSON 1 (woman): One more chapter? PERSON 2 (man): Donโ€™t we both have to get up early? PERSON 1: Nnnnnggggh PERSON 2: Sure, good point. (2) [many people wearing masks, walking while looking at graphs on their phones] (3) [birds landing on people] PERSON 2 in beanie and scarf: Hah! They like *my* seeds best. PERSON 1 in scarf holding phone with a bird sitting on it: Wait, how do I take a picture of this one? (4) [two people rowing boats with tree landscape] (5) [Person 1 carries overflowing stack of things to Person 2 in bed] PERSON 1: I brought you honey lemon tea, more pillows, a cinnamon roll, Tylenol, another blanket, aโ€“ PERSON 2: It was just Appendicitis, Iโ€™m reallyโ€“ PERSON 1: *It is my turn to take care of you and I am going to do it right!* (6) [Two people in car] (7) [still in car) PERSON 1: Oh my god. PERSON 2: Oh my god. (8) [car driving] PERSON 1: Pull over! PERSON 2: I am! (9) [both people get out of car] (10) [Large colored panel of aurora borealis over water with both people looking on] (11) [Person 1 sits against tree while Person 2 lies on the ground] PERSON 1: Fifteen years. No sign of the cancer. (12) I *am* having some weird symptoms. Joint pain. Fatigue. I think Iโ€™m losing my close-up vision. PERSON 2: Yeah. Me too. (13) PERSON 2: I think weโ€™re getting old. (14) PERSON 1: I guess thatโ€™s okay. PERSON 2: Itโ€™s all I wanted.

Fifteen Years

xkcd.com/3172/

26.11.2025 22:32 โ€” ๐Ÿ‘ 11643    ๐Ÿ” 2445    ๐Ÿ’ฌ 291    ๐Ÿ“Œ 240

Link to blog does not work.

24.11.2025 08:00 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 2    ๐Ÿ“Œ 0
Preview
Meta halted internal research suggesting social media harm, court filing alleges Meta is alleged to have halted internal research suggesting social media harm, according to court documents.

Meta halted internal research that purportedly showed (young) people who stopped using Facebook became less depressed and anxious, according to an unredacted legal filing released on Friday. www.cnbc.com/2025/11/23/m...

24.11.2025 00:31 โ€” ๐Ÿ‘ 15649    ๐Ÿ” 6154    ๐Ÿ’ฌ 697    ๐Ÿ“Œ 604

Here is another paper on that topic that has some nice examples: www.tandfonline.com/doi/abs/10.1...

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

Respectable lists of some great movies! I think you forgot Return of the Jedi, though.

21.11.2025 15:07 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

More tinkering with relative measurement uncertainty proposed by @bignardi.bsky.social et al, using plausible values to estimate conditional reliability (inspired by @dmcneish.bsky.social) for Rasch models with WL estimation of latent scores. Code here: github.com/pgmj/easyRas...

21.11.2025 08:29 โ€” ๐Ÿ‘ 6    ๐Ÿ” 1    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

I think there is some material on this in the current draft of the brms book.

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

They're going to crash the global economy by attempting to create an artificial general intelligence, despite having no idea what that is, no proof they can build it & no hope of doing so. Cunts just read too many sci-fi books.

12.11.2025 15:12 โ€” ๐Ÿ‘ 736    ๐Ÿ” 129    ๐Ÿ’ฌ 71    ๐Ÿ“Œ 9

Everyone involved in scientific publishing should take a look at these papers.

>"The domination of scientific publishing in the Global North by major commercial publishers is harmful to science; we need [...] to re-communalise publishing to serve science not the market."

12.11.2025 08:15 โ€” ๐Ÿ‘ 24    ๐Ÿ” 7    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Maybe try altdoc.etiennebacher.com

10.11.2025 20:07 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Two-group pre/post data are deceptively simple, and you could analyze them in many different ways, depending on your goals. Here are three blog posts on the topic:

solomonkurz.netlify.app/blog/2022-06...

solomonkurz.netlify.app/blog/2020-12...

solomonkurz.netlify.app/blog/2023-06...

10.11.2025 19:19 โ€” ๐Ÿ‘ 54    ๐Ÿ” 14    ๐Ÿ’ฌ 3    ๐Ÿ“Œ 0
Preview
Sage Journals: Discover world-class research Subscription and open access journals from Sage, the world's leading independent academic publisher.

I think the impact is pretty clearly disastrous. But can't blame the paper for all of it's misuse. See for instance:
journals.sagepub.com/doi/full/10....

10.11.2025 18:29 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Preview
I wish we could ignore Bill Gates on the climate crisis. But heโ€™s a billionaire, so we canโ€™t | George Monbiot Money talks โ€“ and his essay denouncing โ€˜near-term emissions goalsโ€™ at Cop30 mostly argues the case for letting the ultra-rich off the hook

โ€œโ€ฆthe net worth of the 10 richest US billionaires grew by $698bn in the past year. That money alone, the increment in the wealth of 10 people, is almost 10 times the annual amount required to end extreme poverty worldwide.โ€

www.theguardian.com/commentisfre...

08.11.2025 11:16 โ€” ๐Ÿ‘ 12    ๐Ÿ” 7    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Meta earns $3.5 billion every six months from showing Faceboon and Instagram users 15 billion โ€œhigher legal riskโ€ scam ad impressions a day, internal documents state.

That haul vastly exceeds how much the company expects regulators
To fine it for running scam ads.

www.reuters.com/investigatio...

06.11.2025 11:46 โ€” ๐Ÿ‘ 1697    ๐Ÿ” 754    ๐Ÿ’ฌ 43    ๐Ÿ“Œ 142

Waiting for a new work Mac, Iโ€™m using an M1 Air 2020 which only has 4 high performance cores. Running some tests in R, the Air is twice as fast when using only 4 cores compared to using 8 cores (including the high efficiency cores).

05.11.2025 11:49 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

I was just notified of another paper citing our paper as validating the Swedish PSS-4, when we actually conclude that it should not be used. What was even more surprising was that one of my coauthors on the psychometrics paper was also a coauthor on the paper. Not sure what to do with this.

03.11.2025 09:07 โ€” ๐Ÿ‘ 5    ๐Ÿ” 0    ๐Ÿ’ฌ 2    ๐Ÿ“Œ 0

AI has an "emperor has no clothes" problem where people imagine there are geniuses who will inevitably achieve breakthroughs with enough cash.

AI is bottlenecked by limits in data availability, statistical mechanics, & computing. Improvements will be expensive & incremental, not fundamental.

31.10.2025 13:05 โ€” ๐Ÿ‘ 13    ๐Ÿ” 5    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 1
Preview
a cartoon of a man in a suit and tie standing in front of a fire escape ALT: a cartoon of a man in a suit and tie standing in front of a fire escape

Forced to deal with Microsoft Outlook/etc at work, I constantly find the default settings to be annoying/stupid. I wonder if they ever gather data to understand user preferences or just make assumptions. Or am I the outlier?

31.10.2025 10:38 โ€” ๐Ÿ‘ 3    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

I'm now also looking for a postdoc with strong Bayesian background and interest in developing Bayesian cross-validation theory, methods and software. Apply by email with no specific deadline (see contact information at users.aalto.fi/~ave/).

Others, please share

29.10.2025 14:37 โ€” ๐Ÿ‘ 29    ๐Ÿ” 22    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 1
Post image

New release of PowerLMM.js! Browser-based power analysis for longitudinal models with dropout.

Now includes:
- Power analysis summary report
- Reproducible & shareable configs (URL/JSON)
- Calculations validated against R
- Hypothesis region visualization

powerlmmjs.rpsychologist.com

28.10.2025 14:02 โ€” ๐Ÿ‘ 93    ๐Ÿ” 44    ๐Ÿ’ฌ 4    ๐Ÿ“Œ 2
Screenshot of https://powerlmmjs.rpsychologist.com/

Screenshot of https://powerlmmjs.rpsychologist.com/

๐ŸŽ‰ @rpsychologist.com 's PowerLMM.js is the online statistics application of the year 2025 ๐ŸŽ‰

powerlmmjs.rpsychologist.com

- Calculate power (etc) for multilevel models
- Examine effects of dropout and other important parameters
- Fast! (Instant results)

28.10.2025 14:37 โ€” ๐Ÿ‘ 83    ๐Ÿ” 32    ๐Ÿ’ฌ 2    ๐Ÿ“Œ 1

in my post-academic era i have become extremely scathing of the way academia considers papers to the primary outcome of intellectual work, and refuses to give credit to academics who write software or build other tooling. in industry we very rarely read your papers; but we always use your software

28.10.2025 02:15 โ€” ๐Ÿ‘ 250    ๐Ÿ” 41    ๐Ÿ’ฌ 3    ๐Ÿ“Œ 2
A "methods primer" article in the journal "BMJ Medicine", titled "Factors associated with: problems of using exploratory multivariable regression to identify causal risk factors"

A "methods primer" article in the journal "BMJ Medicine", titled "Factors associated with: problems of using exploratory multivariable regression to identify causal risk factors"

We wrote an article explaining why you shouldn't put several variables into a regression model and report which are statistically significant - even as exploratory research. bmjmedicine.bmj.com/content/4/1/.... How did we do?

27.10.2025 17:39 โ€” ๐Ÿ‘ 274    ๐Ÿ” 110    ๐Ÿ’ฌ 26    ๐Ÿ“Œ 20

I've done some more work on the relative measurement uncertainty, comparing `brms` posterior draws to "plausible values" in Rasch models, and some other reliability metrics. Estimating RMU from draws adds some variation, as shown in the figure.
pgmj.github.io/reliability....
#rstats #psychometrics

24.10.2025 16:49 โ€” ๐Ÿ‘ 4    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 1

Hmm. I thought I was getting these prompts since I use an always on VPN.

23.10.2025 21:23 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Post image

Anthony Biglan's "The Nurture Effect" shines a light on how we can intentionally design better societies. It's about building upstream prevention and fostering nurturing environments. What are your thoughts? snapt.io/CUHnJ #SocialScience #CommunityDevelopment #Prevention Image: Vectzeey

23.10.2025 20:47 โ€” ๐Ÿ‘ 1    ๐Ÿ” 2    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

@pgmj is following 20 prominent accounts