Displaying 2 results from an estimated 2 matches for "all_dichotom".
2023 Mar 27
1
Displaying Dichotomous Variables as fractions in gtsummary Tables
...able to find a solid answer to this.
I'm wanting to create a table in gtsummary that displays entries for "Yes" and "No" as fractions rather than a relative to the total (e.g. {n} / {N} in the documentation).
I realize I can split them into rows with something like:
type = all_dichotomous() ~ "categorical"
But I would honestly much rather display the variable as something like:
Condition? (Y/N) count "Yes"/ count "No"
Is this possible to do in gtsummary?
Thank you in advance.
The information in this e-mail is intended only for...
2023 Mar 27
1
Displaying Dichotomous Variables as fractions in gtsummary Tables
...er to this.
>
> I'm wanting to create a table in gtsummary that displays entries for "Yes" and "No" as fractions rather than a relative to the total (e.g. {n} / {N} in the documentation).
>
> I realize I can split them into rows with something like:
> type = all_dichotomous() ~ "categorical"
>
> But I would honestly much rather display the variable as something like:
>
> Condition? (Y/N) count "Yes"/ count "No"
>
>
> Is this possible to do in gtsummary?
>
> Thank you in advance.
> Th...