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

Add .$table_styling$header$modify_stat_* for tbl_strata() levels ? #1962

Open
ddsjoberg opened this issue Sep 7, 2024 · 0 comments
Open
Milestone

Comments

@ddsjoberg
Copy link
Owner

ddsjoberg commented Sep 7, 2024

When we run tbl_strata() it would be helpful to store more information about the stratum levels.

For example, if the stratum were trt and grade, then we could possible keep the following data:
modify_stat_strata_levels: "Drug A, II"
modify_stat_strata1_level: "Drug A"
modify_stat_strata2_level: "II"
modify_stat_strata1_var: "trt"
modify_stat_strata2_var: "grade"

Perhaps also the Ns, but would need to think clearly about what those Ns would be and how they are nested/not nested
modify_stat_strata1_n, modify_stat_strata2_n

This could be helpful for functions like tbl_heirarchical() where we want to perhaps use tbl_strata() in the background to build tables split by both grade and treatment.

@ddsjoberg ddsjoberg added this to the v2.1.0 milestone Sep 7, 2024
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

1 participant