Gilead-BioStats / gsm.app

https://gilead-biostats.github.io/gsm.app/
Apache License 2.0
4 stars 2 forks source link

Feature: Add `#`/`%` of participants without an adverse event to group-level metadata. #163

Open samussiah opened 4 months ago

samussiah commented 4 months ago

Feature Details

Per @jennkrohn, it would be helpful to know how many participants skewed a metric downward, like AE under-reporting. More generally #/% of participants with a 0 in the numerator of a metric.

Example Code

dfInput %>%
    group_by(.data$GroupLevel, .data$GroupID) %>%
    summarize(
        nParticipantsWithoutEvents = sum(.data$Numerator == 0),
        nParticipants = n(),
        pct = nParticipantsWithoutEvents / nParticipants * 100
    )

Possible Implementation

Would need to pass dfInput to the reporting workflow.

Additional Comments

Metric-specific group-level attributes

jwildfire commented 3 months ago

Migrating to {gsmApp}