jinseob2kim / jstable

Regression Tables from 'GLM', 'GEE', 'GLMM', 'Cox' and 'survey' Results.
https://jinseob2kim.github.io/jstable/
Apache License 2.0
23 stars 13 forks source link

Error in TableSubgroupMultiCox with cluster parameter #33

Closed youmingmeia closed 3 months ago

youmingmeia commented 5 months ago

When using the TableSubgroupMultiCox function with the cluster parameter, I encounter the following `library(jstable) library(survival) library(dplyr)

lung %>% mutate( status = as.integer(status == 1), sex = factor(sex), kk = factor(as.integer(pat.karno >= 70)), kk1 = factor(as.integer(pat.karno >= 60)) ) -> lung

TableSubgroupMultiCox( Surv(time, status) ~ sex, var_subgroups = c("kk", "kk1"), data = lung, time_eventrate = 100, line = TRUE, cluster = "inst" ) Error in get(cluster) : invalid first argument`

jinseob2kim commented 4 months ago

Sorry, I fix the issue. please install the latest version via remotes::install_github("jinseob2kim/jstable")