Using gtsummary package for Multiple Response

Hi,
I am looking for codes to summarize outputs using gtsummary package. Each individual responses from the multiple responses set in my data frame are in the columns and the rows contain unique respondents. Additionally, I did not assign any value labels (codes) to the responses, e.g. 0, 1. Rather if someone chose a particular response the data currently is in words. the data frame is in tbl_df format. I am very new to R, any help would be highly appreciated.

1 Like

Hi, welcome to the forum.

We need some idea of what kind of table that you want. An idea of the subject matter and the intended audience would be very helpful.

If possible, some sample data would also be very helpful. If your data is confidential, mock data ,as long as it is in the same format, should be fine.

A handy way to supply some sample data is the dput() function. In the case of a large dataset something like dput(head(mydata, 100)) should supply the data we need. Just do dput(mydata) where mydata is your data. Copy the output and paste it here between
```

```

For general information about the forum you may find this useful: FAQ Asking Questions

1 Like

This topic was automatically closed 42 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.