Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign updplyr::do error with surv_cutpoint #104
Comments
|
This issue is now fixed. The R package maxstat doesn't support very well an object of class tbl_df. Now, in # perform surv_categorize in groups determined by dataset
clin_expr %>%
group_by(dataset) %>%
do(data_cat =
surv_cutpoint(data = ., time = "times",
event = "patient.vital_status",
variables = c("PAX8", "dataset"))) ->
clin_exp_categorized |
|
Thank you @kassambara for your kind help. |

dplyr::do error with surv_cutpoint
expected behaviour
surv_categorize works for grouped data.frames in
dplyr::doworklfow.actual behaviour
I get an error, probably from
survivalwhile this works for not grouped set
session info