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

Should the ard_*() functions add a strata argument? #29

Closed
ddsjoberg opened this issue Sep 26, 2023 · 1 comment · Fixed by #44
Closed

Should the ard_*() functions add a strata argument? #29

ddsjoberg opened this issue Sep 26, 2023 · 1 comment · Fixed by #44
Assignees

Comments

@ddsjoberg
Copy link
Collaborator

Some ard_*() functions have a by= argument. All stats are calculated for all combinations of variables found in the by= argument (observed and unobserved combinations).

Perhaps all these functions should have a strata= argument as well? The data would first be stratified by the strata= variable(s), then the calculations would occur within each stratum. A few use cases for this:

  1. Tabulating AE within SOC.
  2. Summarizing items stratified by visit (perhaps not all items collected at all timepoints)

We already have the ard_stratieif_categorical(), but it could perhaps be encompassed in ard_categorical(strata=)

@ddsjoberg
Copy link
Collaborator Author

Here is how the new argument could be documented. I like it together so users will read both descriptions.

image

@ddsjoberg ddsjoberg self-assigned this Oct 27, 2023
ddsjoberg added a commit that referenced this issue Nov 1, 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

Successfully merging a pull request may close this issue.

1 participant