I have been asked by a journal to provide how much of the data in a large Table 1 is complete and how much is missing, in a separate supplementary table.
Ideally like:
| Variable | Group 1 (n = 128) | Group 2 (n=100) |
|---|---|---|
| Age | 128 (100%) | 100 (100%) |
| Sex | 64 (50%) | 75 (75%) |
and so on...
Each variable is formatted as n(percentage complete) in the table.
I know about the missing = "if any" and have been using that, but I can't find a way even with the modify() commands to make a table with just this info. They don't want add_n() style total numbers and missing information in the Table 1 within the manuscript itself.
Is there a relatively straightforward that I am missing and can do this?