Closed pipi815 closed 5 months ago
Sorry. Currenty The function can't be support >2 categories. I will update until next release. Thanks
@Suhyeon-Kwon Next week task
We update the function. Please install the latest version via remotes::install_github("jinseob2kim/jstable")
Thanks for your excellent works.
We update the function. Please install the latest version via remotes::install_github("jinseob2kim/jstable")
I still have this problem with support >2 categories.
res <- TableSubgroupMultiCox(formula = Surv(time, Status) ~ Chemotherapy,
- var_subgroups = c("Age","Hist","Grade","Stage",),
- data = df #
) Error in
purrr::map()
: ℹ In index: 1. Caused by error inif (is.na(pv_anova) & !is.null(cluster)) ...
: ! the condition has length > 1 Runrlang::last_trace()
to see where the error occurred. rlang::last_trace() <error/purrr_error_indexed> Error inpurrr::map()
: ℹ In index: 1. Caused by error inif (is.na(pv_anova) & !is.null(cluster)) ...
: ! the condition has length > 1Backtrace: ▆
- └─jstable::TableSubgroupMultiCox(...)
- └─purrr::map(...)
- └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
- ├─purrr:::with_indexed_errors(...)
- │ └─base::withCallingHandlers(...)
- ├─purrr:::call_with_cleanup(...)
- └─jstable (local) .f(.x[[i]], ...)
└─jstable::TableSubgroupCox(...) Run rlang::last_trace(drop = FALSE) to see 4 hidden frames. rlang::last_trace(drop = FALSE) <error/purrr_error_indexed> Error in
purrr::map()
: ℹ In index: 1. Caused by error inif (is.na(pv_anova) & !is.null(cluster)) ...
: ! the condition has length > 1Backtrace: ▆
- ├─jstable::TableSubgroupMultiCox(...)
- │ └─purrr::map(...)
- │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
- │ ├─purrr:::with_indexed_errors(...)
- │ │ └─base::withCallingHandlers(...)
- │ ├─purrr:::call_with_cleanup(...)
- │ └─jstable (local) .f(.x[[i]], ...)
- │ └─jstable::TableSubgroupCox(...)
- └─base::.handleSimpleError(...)
- └─purrr (local) h(simpleError(msg, call))
- └─cli::cli_abort(...)
- └─rlang::abort(...)
Thanks for your feedback. Can you share reproducible example with data?
I fix the issue. please install the latest version via remotes::install_github("jinseob2kim/jstable")
Tanks for author's work. My independent variable is a four-category variable.something gets wrong as the below, i wonder how to deal with it.Looking forward to your reply