You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking at "Show R code" (see "relevant log output" below) we found that only this line of code is responsible (without any involvement of the dataset yet):
While the error is only caught deep down in the calling hierarchy in a function of the rtables package, the error can easily be prevented by not passing covariates = NULL to summarize_coxreg, like so:
lyt<-rtables::basic_table(title="Multi-Variable Cox Regression for OS", subtitles="Stratified by STRATA1", main_footer= c("p-value method for Coxph (Hazard Ratio): wald", "Ties for Coxph (Hazard Ratio): exact")) %>%
rtables::append_topleft("OS") %>%
summarize_coxreg(variables=list(time="AVAL", event="event", arm="ARM", strata="STRATA1"), control=list(pval_method="wald", ties="exact", conf_level=0.95, interaction=FALSE), multivar=TRUE, .stats= c(
"hr",
"ci", "pval"
))
What happened?
When starting a tm_t_coxreg module with no covarIates selected (which should be the default option for my use case) , then an error occurs.
The following code reproduces this error (example from ?tm_t_coxreg without covariates at startup):
Looking at "Show R code" (see "relevant log output" below) we found that only this line of code is responsible (without any involvement of the dataset yet):
While the error is only caught deep down in the calling hierarchy in a function of the rtables package, the error can easily be prevented by not passing
covariates = NULL
tosummarize_coxreg
, like so:sessionInfo()
Relevant log output
Code of Conduct
Contribution Guidelines
Security Policy
The text was updated successfully, but these errors were encountered: