Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug Report: cuminc() with factor function error #69

Closed
ddsjoberg opened this issue Mar 4, 2022 · 1 comment
Closed

Bug Report: cuminc() with factor function error #69

ddsjoberg opened this issue Mar 4, 2022 · 1 comment

Comments

@ddsjoberg
Copy link
Collaborator

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)

@ddsjoberg
Copy link
Collaborator Author

This is on hardhat and we won't fix

@ddsjoberg ddsjoberg closed this as not planned Won't fix, can't repro, duplicate, stale Oct 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant