gtsummary add units to variable labels in tbl_summary
I’m trying to customize the labels of a gtsummary::tbl_summary()
and I’m having some trouble adding units to variables which do have this information.
Dataframe does not have the required “variable” column
gtsummary was working fine originally, but at some point it became unusable. I thought it might be an error when creating a fairly complex table, but even with the following simple code, an error occurs.Can anyone give me some advice?
gtsummary error in R: data frame does not have the required “variable” column
gtsummary was working fine originally, but at some point it became unusable. I thought it might be an error when creating a fairly complex table, but even with the following simple code, an error occurs.Can anyone give me some advice?
Is there a way to specify statistics format by column in gtsummary::tbl_summary?
I have multiple columns created from the “by” variable that I want mean() and sd(), but in one column (the last) I just want the mean(). Is there a way to format statistics by column as opposed to row with tbl_summary()?
Automatic assigning t-test and ANOVA to variables in tbl_continuous in gtsummary
trial |> select(trt,marker,grade,response) |> tbl_continuous(marker, statistic = ~”{mean} ({sd})”) |> add_p() I want to use t-test and ANOVA in add_p(), I did not find enough documentation in this part or how to use specific version of t-test and how to use ANOVA only when there are more than 2 levels and t-test when there are […]
Automatic assigning t-test and ANOVA to variables in tbl_continuous in gtsummary
trial |> select(trt,marker,grade,response) |> tbl_continuous(marker, statistic = ~”{mean} ({sd})”) |> add_p() I want to use t-test and ANOVA in add_p(), I did not find enough documentation in this part or how to use specific version of t-test and how to use ANOVA only when there are more than 2 levels and t-test when there are […]
Automatic assigning t-test and ANOVA to variables in tbl_continuous in gtsummary
trial |> select(trt,marker,grade,response) |> tbl_continuous(marker, statistic = ~”{mean} ({sd})”) |> add_p() I want to use t-test and ANOVA in add_p(), I did not find enough documentation in this part or how to use specific version of t-test and how to use ANOVA only when there are more than 2 levels and t-test when there are […]
Automatic assigning t-test and ANOVA to variables in tbl_continuous in gtsummary
trial |> select(trt,marker,grade,response) |> tbl_continuous(marker, statistic = ~”{mean} ({sd})”) |> add_p() I want to use t-test and ANOVA in add_p(), I did not find enough documentation in this part or how to use specific version of t-test and how to use ANOVA only when there are more than 2 levels and t-test when there are […]
Automatic assigning t-test and ANOVA to variables in tbl_continuous in gtsummary
trial |> select(trt,marker,grade,response) |> tbl_continuous(marker, statistic = ~”{mean} ({sd})”) |> add_p() I want to use t-test and ANOVA in add_p(), I did not find enough documentation in this part or how to use specific version of t-test and how to use ANOVA only when there are more than 2 levels and t-test when there are […]
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.