Category "gtsummary"

Show true unknown count based on question logic

I'm working with surveys where if a specific answer is provided, a follow-up question is given. For example, if the answer to q1 is "yes" then q2 is asked. Howe

Calculate percent from total observations in r gtsummary::tbl_summary?

Issue: In gtsummary the tbl_summary function calculates column percent out of the total non-missing observations. I would like gtsummary to calculate percent fr

Formating tbl_svysummary() outputs in R

I'm doing descriptive analysis of survey data, I'm using the gtsummary package which have been working nicely. I use this code, I don't provide any data because

Is it possible to create a stratified table (tbl_strata) using tbl_svysummary()?

I am pretty new to survey data and gtsumarry package. I'm trying to create a stratified table from the survey data using the following code, and I get the error