Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Filter by
Sorted by
Tagged with
1 vote
1 answer
85 views

How can I keep all-zero columns in `tbl_hierarchical` nested in `tbl_strata()`?

For reporting purposes, I need to display some observations that are supposed to be in dataset but not there actually, solely within hierarchical table, this is working: library(cards) library(...
Huan Lu's user avatar
  • 141
0 votes
1 answer
78 views

How can I filter observation per its p-value after I used `tbl_merge`?

I tried to populate a table through merge and want to filter out those rows with any p-value greater than 5%, here is an example: library(cards) library(gtsummary) tbl_1 <- tbl_hierarchical( ...
Huan Lu's user avatar
  • 141
0 votes
0 answers
73 views

GTSUMMARY table customize column percentage

I am trying to generate a Lab shift table as below. The blue box has row percent & orange is column percent. I am struggling to figure out the 'green highlighted' percent. Example code: # Load ...
Ranjan Karmakar's user avatar
0 votes
0 answers
85 views

How can I resolve the issue where merging objects to display "Zero rows" output with tbl_hierarchical prevents stacking with other gtsummary objects?

I‘d like the display of the table to look like this. Therefore, I roughly divided this table into two parts: 1)Enrolled is output as a tbl_summary object. 2) Not entered/randomized uses ...
xiecheng gu's user avatar
0 votes
0 answers
51 views

How to make tbl_ard_wide_summary() work for nested structures

When I use tbl_ard_wide_summary(), I find that it is incompatible with group levels. For example, after adding strata or by variables in ard_summary(), tbl_ard_wide_summary() does not work properly. ...
xiecheng gu's user avatar
0 votes
0 answers
47 views

How to incorporate the LSMeans results from an MMRM into tbl_custom_summary and further include it in a nested table structure?

The final table format I want to achieve is as shown in the figure below. In my understanding that creating such a table requires several steps: 1)Use tbl_wide_summary to obtain the descriptive ...
xiecheng gu's user avatar
0 votes
0 answers
14 views

How to translate CI to IC of the header of a in gtsummary table?

How to translate CI to IC (brazilian portuguese) of the header of a gtsummary table? Using theme_gtsummary_language() function, it doesn't work. I tried the modify_header() function too, but doesn't ...
Ornella Scardua's user avatar