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

Bad sorting in ae_table_soc() #8

Open
2 tasks
DanChaltiel opened this issue Sep 18, 2024 · 0 comments
Open
2 tasks

Bad sorting in ae_table_soc() #8

DanChaltiel opened this issue Sep 18, 2024 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@DanChaltiel
Copy link
Member

DanChaltiel commented Sep 18, 2024

If some AEs happen only in the right-panel treatment arm, the soc is sorted after "No Declared AE".

Fix is to arrange by soc after the pivot_wider() here:

grstat/R/ae_table_soc.R

Lines 147 to 150 in d5ec966

rtn = rtn %>%
rename(soc=soc_) %>%
pivot_wider_spec(spec) %>%
add_class("ae_table_soc")

  • Fix the bug
  • add a test

Workaround: arrange by "soc" outside the function works as well

@DanChaltiel DanChaltiel added the bug Something isn't working label Sep 18, 2024
@DanChaltiel DanChaltiel self-assigned this Sep 20, 2024
@DanChaltiel DanChaltiel added this to the v0.2 milestone Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant