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
I was working through the examples included in the "Tabulate binary response by subgroup" reference site and I noticed that manipulating the pct argument in the control_riskdiff() function that is passed to the riskdiff argument of tabulate_rsp_subgroups() does not behave as expected.
Specifically, I would expect that setting pct=TRUE would return the outputs as percentages, and setting pct=FALSE would not return percentages. However, the outputs are identical regardless of whether pct is TRUE or FALSE.
Am I misguided/should the outputs above be identical? I'm seeing the same behaviors when I work through the examples in the "Tabulate survival duration by subgroup" reference site and manipulate control_riskdiff()'s arguments in the tabulate_survival_subgroups() function in a similar manner to what I've described here for tabulate_rsp_subgroups() as well.
adcascone
changed the title
[Bug]: passing control_riskdiff() to riskdiff in tabulate_rsp_subgroups() behaves unexpectedly
[Bug]: passing control_riskdiff() to riskdiff in tabulate_rsp_subgroups() and tabulate_survival_subgroups() behaves unexpectedly
Jan 30, 2025
The fix for this issue is now available in the latest development version of tern. You can download the development version from GitHub using the following line of code:
What happened?
Hello,
I was working through the examples included in the "Tabulate binary response by subgroup" reference site and I noticed that manipulating the
pct
argument in thecontrol_riskdiff()
function that is passed to theriskdiff
argument oftabulate_rsp_subgroups()
does not behave as expected.Specifically, I would expect that setting
pct=TRUE
would return the outputs as percentages, and settingpct=FALSE
would not return percentages. However, the outputs are identical regardless of whetherpct
isTRUE
orFALSE
.Am I misguided/should the outputs above be identical? I'm seeing the same behaviors when I work through the examples in the "Tabulate survival duration by subgroup" reference site and manipulate
control_riskdiff()
's arguments in thetabulate_survival_subgroups()
function in a similar manner to what I've described here fortabulate_rsp_subgroups()
as well.Thank you for clarifying this!
Here is the code I ran, for replication purposes:
sessionInfo()
Relevant log output
Code of Conduct
Contribution Guidelines
Security Policy
The text was updated successfully, but these errors were encountered: