You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
library(forcats)
library(tidycmprsk)
t1<- cuminc(Surv(ttdeath, death_cr) ~grade, trial) # the original works t2<- crr(Surv(ttdeath, death_cr) ~ fct_rev(grade), trial) # reverse factor works in crr()t3<- cuminc(Surv(ttdeath, death_cr) ~ fct_rev(grade), trial) # reverse factor DOES NOT work in cuminc()#> Error in `glubort()`:#> ! Functions involving factors or characters have been detected on the RHS of `formula`. These are not allowed when `indicators = "none"`. Functions involving factors were detected for the following columns: 'grade'.
Created on 2022-03-04 by the reprex package (v2.0.1)
The text was updated successfully, but these errors were encountered: