В Mon, 26 Aug 2024 09:42:10 -0500 "Therneau, Terry M., Ph.D. via R-devel" <r-devel@r-project.org> пишет:
> For instance > fit <- survival::survdiff( survival::Surv(time, status) ~ > ph.karno + survival::strata(inst), data= survival::lung) > > This fails to give the correct answer because it fools terms(formula, > specials= "strata"). Apologies if the following has no chance to work for reasons obvious to everyone else, but *currently*, terms(formula, specials= c('strata', 'survival::strata')) seems to recognise `survival::strata`. Would it be possible to then post-process the terms object and retain only one kind of 'strata' special? Having said that, if https://bugs.r-project.org/show_bug.cgi?id=18568 is merged, this will probably break and will instead require recognising `::` as a special and then manually figuring out which function is being imported from which package. -- Best regards, Ivan ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel