Relative Content

Tag Archive for rgtsummary

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.

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?

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 […]