How to ensure that rounding is uniform using tbl_svysummary
I am trying to produce a descriptive statistics table from a survey
object using the
gtsummary
package. I want to include the differences in descriptive statistics depending on whether respondents voted for Trump or not. I don’t know how to control the number of digits produced by add_differences()
, so that it matches the rest of the table.
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 […]