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

table_one: "Overall" collumn for each category in "groupby", multiple "groupby" (Question / Feature request) #7

Closed
PharmCat opened this issue Apr 19, 2024 · 3 comments · Fixed by #30

Comments

@PharmCat
Copy link

For example:

using SummaryTables

data = (;
    x = [1, 2, 3, 4, 5, 6],
    y = ["a", "a", "b", "b", "c", "c"],
    z = ["d", "e", "d", "e", "d", "e"],
)

table_one(data, :x, groupby = [:y, :z => "Column Z"])

Is is possible to get overall statistics for each :y category?

Is it possible to get grouping separately for :y and:z in one table?

@jkrumbiegel
Copy link
Collaborator

Is is possible to get overall statistics for each :y category?

overall is really meant for all subjects together, but you also get statistics per group entry so I'm not sure what exactly you mean by for each :y category

Is it possible to get grouping separately for :y and:z in one table?

No, currently not.

@PharmCat
Copy link
Author

overall is really meant for all subjects together, but you also get statistics per group entry so I'm not sure what exactly you mean by for each :y category

For example how tables in SPSS looks like:

image

"Total" column can be printed for each sub-category.

@andreasnoack
Copy link
Member

This would indeed be very useful to have.

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

Successfully merging a pull request may close this issue.

3 participants