Måns Thulin
mansthulin.bsky.social
Måns Thulin
@mansthulin.bsky.social
I work in statistics and AI. Consultant, teacher, researcher. #Rstats user.
Book: https://modernstatisticswithr.com
Homepage: https://mansthulin.se
Co-founder of https://aireview.se
I remember seeing a github repo for this a while ago. Might have been this one, but I'm not sure: github.com/AllanCameron...
November 10, 2025 at 1:54 PM
If you use git a lot, use Python, or need AI assistants: yes. Otherwise: no, stick with RStudio - it's still great at what it does and keeps getting better.
November 4, 2025 at 7:29 AM
Looks really interesting! I might use this as a case study when I teach statistics for biologist next year.
October 25, 2025 at 6:36 AM
Thanks Daniel! Very happy to hear it!
October 24, 2025 at 7:09 AM
It's the variance of the _estimator_ that matters. This is still true if you estimate higher moments like skewness and kurtosis. The variance of those estimators will be related to the sixth and eight moments of the measurements, but it's still a variance.
October 24, 2025 at 6:12 AM
strsplit("this/is/my/path", "/")[[1]]
October 23, 2025 at 7:36 AM
Not until all countries adopt the YYYY-MM-DD date standard!
October 20, 2025 at 6:17 AM
It should still be using right censoring I think! The survival package is extremely powerful, but the documentation isn't always easy to follow. I've sometimes compared the results to manual calculations in toy examples just to make sure that it was using the model I thought it was.
October 15, 2025 at 6:52 AM
The issue could be that for data with consecutive time periods, Surv expects three variables: start time, stop time, event indicator. So Surv(Days_Lag, Days, SurvivalDepressionTotal_Diff) in your case. You may need to remove the rows where Days_Lag is NA as well.
October 14, 2025 at 3:40 PM
Depends on what your data looks like. Do you have consecutive time periods for each individual?
October 14, 2025 at 1:02 PM
The number of records is much larger than the number of individuals (n), which seems to indicate that you have multiple rows per individual in your dataset. But it's not because of time-varying covariates or multiple events? You're doing something beyond a standard Cox regression, surely? :)
October 14, 2025 at 11:41 AM
What model are you using? This looks like the output from a Cox regression with time-varying covariates. Correct? Can patients have more than one event?
October 14, 2025 at 6:33 AM
Yes! Right assignment with pipes *chef's kiss*
September 25, 2025 at 6:28 AM
Highly recommended! It solves the problems you're having and speeds up the installation of new packages.
August 14, 2025 at 8:11 AM
I'm extremely biased, but I think Modern Statistics with R is a great choice 😁
www.modernstatisticswithr.com
Modern Statistics with R
Modern Statistics with R
www.modernstatisticswithr.com
July 4, 2025 at 8:37 PM