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

sub-group analysis adjusted for other covariates #21

Closed
ayueme opened this issue Mar 15, 2024 · 2 comments
Closed

sub-group analysis adjusted for other covariates #21

ayueme opened this issue Mar 15, 2024 · 2 comments

Comments

@ayueme
Copy link

ayueme commented Mar 15, 2024

Hello there,
Sub-group analysis adjusted for other covariates is widely used in papers. For example, the figure 3 in this paper.
image

The TableSubgroupxxx functions can only have one covariate. Just like the following:

# OK
TableSubgroupMultiCox(
  formula = Surv(time, status) ~ rx, # only 1 covariates is supported
  var_subgroups = c("sex","age","obstruct","perfor","adhere"), 
  data = df)

# NOT OK
TableSubgroupMultiCox(
  formula = Surv(time, status) ~ rx + bmi + smoke, # this not work
  var_subgroups = c("sex","age","obstruct","perfor","adhere"), 
  data = df)

So would you mind adding this feature?
Thank you very much.

@jinseob2kim
Copy link
Owner

Please use var_cov option

@ayueme
Copy link
Author

ayueme commented Apr 12, 2024

Thank you very much! I missed that important detail, sorry...

@ayueme ayueme closed this as completed Apr 12, 2024
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

2 participants