Closed BFalquet closed 2 months ago
as far as I could see to get pvalue you need to add the method and strata:
# Unstratified analysis.
df <- extract_rsp_subgroups(
method = "cmh",
variables = list(rsp = "rsp", arm = "ARM", subgroups = c("SEX", "BMRKR2"), strata = "STRATA1"),
data = adrs_f
)
basic_table() %>%
tabulate_rsp_subgroups(
df = df,
vars = c("n_tot", "n", "n_rsp", "prop", "or", "ci", "pval")
)
But I think this could be a bug
Maybe we could have an assertion that checks that method
is not NULL
if pval
is among the vars
or have a default method set up.
What happened?
Shouldn't there be a p-value represented ?
sessionInfo()
Relevant log output
No response
Code of Conduct
Contribution Guidelines
Security Policy