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 ARD function for counting patients #240

Open
edelarua opened this issue Nov 19, 2024 · 0 comments · May be fixed by #244
Open

Add ARD function for counting patients #240

edelarua opened this issue Nov 19, 2024 · 0 comments · May be fixed by #244
Assignees
Labels
ARD enhancement New feature or request sme

Comments

@edelarua
Copy link
Contributor

edelarua commented Nov 19, 2024

Create function to calculate patient counts as returned by tern::s_count_occurrences(), tern::s_num_patients(), and tern::s_count_occurrences_by_grade().

The function should be a wrapper for ard_categorical() that uses an id parameter to count patients instead of events, with the possibility to count by grade (i.e. for ordered factor variables) such that only the highest grade level is recorded for each patient.

This is currently somewhat implemented in ard_hierarchical() but only makes sense for hierarchies with >1 variables.

See https://insightsengineering.github.io/tern/latest-tag/reference/count_occurrences.html for details on the tern function.

@edelarua edelarua added enhancement New feature or request sme ARD labels Nov 19, 2024
@edelarua edelarua self-assigned this Nov 21, 2024
@edelarua edelarua linked a pull request Nov 25, 2024 that will close this issue
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ARD enhancement New feature or request sme
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant