Displaying 1 result from an estimated 1 matches for "offendinge".
Did you mean:
offending
2024 Sep 15
1
Possible update to survival
...roup), data=mydata)
This messes up the character string matching for strata, done via tt <- terms(formula, specials= ?strata?). The code runs, and gives the wrong answer (group is treated as an ordinary covariate).
The solution
1. Add code very early that rewrites the formula without the offendinge survival:: string
2. Before calling model.frame(), insert my copy of strata into the calling chain
coxenv <- new.env(parent= environment(formula))
assign("strata", survival::strata, envir= coxenv)
environment(formula) <- coxenv
The second part of this deals with thos...