Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
probably shouldnt be using an lm for the outcome with 4 categories anyway. is pub_date a date? i would change that to something more interpretable like time since some start date. untested: loc_rating$loc_rating_ind <- as.integer(with(loc_rating, loc_rating == 'Good' | loc_rating == 'Outstanding')); glm(loc_rating_ind ~ pub_date, data = loc_rating, family = 'binomial')
@DanChaltiel hmm, good point. I'm not sure, but it seems to do with how finegray handles discrete time (or times with ties). For example, if you add a tiny amount of noise to the time variable, you get the same coefficients: run transplant$futime <- transplant$futime + runif(nrow(transplant), 0, 0.1) first then fit the models. There is a line in finegray which is newtime <- matrix(findInterval(Y[, 1:2], utime), ncol = 2) where utime are unique times, so that may be the culprit