Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proportions of 'stratification' variables #113

Open
samuelsaari opened this issue Oct 23, 2023 · 3 comments
Open

Proportions of 'stratification' variables #113

samuelsaari opened this issue Oct 23, 2023 · 3 comments

Comments

@samuelsaari
Copy link

Is there a way of displaying (also) the percentages of rows by grouping variables? The default is to display total number of rows in a given group.

This hopefully makes it clearer:
In the Vignette (https://cran.r-project.org/web/packages/table1/vignettes/table1-examples.html), it shows counts of 'status'
table1(~ factor(sex) + age + factor(ulcer) + thickness | status, data=melanoma2). Would in addition like to see percentatages (65 %,28 %,7 %) in addition to the counts (134 57 14 205)..

@benjaminrich
Copy link
Owner

Please have a look at #92. It shows and example of how to do this.

@samuelsaari
Copy link
Author

Thank you.

@samuelsaari
Copy link
Author

Can you kindly have a look at #92 where I added a question relating to how to maintain the information when saving the table as a LaTeX file?

@samuelsaari samuelsaari reopened this Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants