add_ci() in gtsummary placing confidence interval on wrong row when using continuous2 is used
I am creating a descriptive table using the gtsummary package. For each variable, I’d like to have a row for the variable label, and then sub-rows for each factor. I then present the confidence interval in a 95% CI in a new column.
How to merge cells for `row_type` = label with other columns when `label` is very long
I have a table containing multiple statistics per group (in this case: site). I have a couple of sites that have a really long name that forces the first column to expand to contain all the characters. This makes the table larger than necessary.
How to add total column in gt_summary stratified table
I am trying to create stratified summary table with 93 levels of strtaification.
gtsummary with multi-categorical variable
I would like to summarize a table with a categorical variable, that can more than one category for any given id (i.e., in my example below, a semicolon-separated list within a cell). The denominator should be the number of unique ids (i.e., in my example below, n_ids = 5
), and percentages should therefore add to greater than 100%. I’m not sure how to get gtsummary
to use my desired denominator. See the reprex and my desired output below. Thank you for your help.
gtsummary inline_text(), use of column by name
I am creating an table by tbl_summary and use inline_text(), to use the results.
Since an update using the colnames doesn’t work, I am required to use “stat_1” instead.
However, when I print the whole table, it shows the labels correctly.
gtsummary tbl_summary: sorting of stratify variable
Using package gtsummary version 2.0.0 under R version 4.4.0 (Windows), I have a question concerning the order of the stratifying variable, which seems to get mixed up sometimes.
Modify cells in tbl_summary table by dividing with constant
I have a table which has n and percentages in cells. I would like to divide or multiply each n by a constant, ideally while creating the table.
Changing the number of tests to adjust for with add_q() from gtsummary package
I’m struggling to figure this out and it seems like there should be a way to do this, but I can’t find a solution online.
Mean scores for survey responses in gtsummary
I am attempting to produce a table of weighted mean survey scores by categorical variables in gtsummary using the tbl_svysummary
function.
Group variables into toplevel variables within tbl_summary()
I would like to manually set groups for variables inside the call to tbl_summary. A group of variables should be reported both individually and as a group.
If i had a logical variable apple
and a logical variable banana
, i would like to report the frequencies of apple
and banana
, but also for fruits
.