-
-
Notifications
You must be signed in to change notification settings - Fork 12
modified sort_ard_hierarchical function #550
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
Open
rikoprogrammer
wants to merge
14
commits into
insightsengineering:main
Choose a base branch
from
rikoprogrammer:ard_sort
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 8 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
2a6700f
modified sort_ard function
rikoprogrammer b19ad25
Merge branch 'main' into ard_sort
ddsjoberg 330dbb2
Merge branch 'main' into ard_sort
ddsjoberg 72bc6fb
rectified CMD check errors
rikoprogrammer 1e76dfc
Merge branch 'main' of https://github.com/rikoprogrammer/cards into a…
rikoprogrammer eaa1c9c
Merge branch 'ard_sort' of https://github.com/rikoprogrammer/cards in…
rikoprogrammer b31c8ad
rectified the R CMD error
rikoprogrammer b42a717
Addition: copying {gtsummary} .* lines for .gitignore
Melkiades b748c36
Merge branch 'main' into ard_sort
ddsjoberg 20089c3
modified sort_ard_hierarchical and deleted .Rhistory
rikoprogrammer e7945fa
addressed code review comments
rikoprogrammer 9dd1e58
Merge branch 'ard_sort' of https://github.com/rikoprogrammer/cards in…
rikoprogrammer ba31ef2
Merge branch 'main' into ard_sort
rikoprogrammer 4ab5bb2
Merge branch 'main' into ard_sort
rikoprogrammer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,181 @@ | ||
| Sys.getenv() | ||
| library(cards) | ||
| library(gtsummary) | ||
| ard <- ard_tabulate( | ||
| data = cards::ADAE, | ||
| variables = c(AESOC, AEDECOD), | ||
| denominator = cards::ADSL | ||
| ) | ||
| ae_tbl <- tbl_ard_summary( | ||
| ard, | ||
| by = TRTA | ||
| ) | ||
| ard <- ard_tabulate( | ||
| data = cards::ADAE, | ||
| by = TRTA | ||
| variables = c(AESOC, AEDECOD), | ||
| ard <- ard_tabulate( | ||
| data = cards::ADAE, | ||
| by = TRTA, | ||
| variables = c(AESOC, AEDECOD), | ||
| denominator = cards::ADSL | ||
| ) | ||
| ae_tbl <- tbl_ard_summary( | ||
| ard, | ||
| by = TRTA | ||
| ) | ||
| ae_tbl | ||
| ae_tbl <- tbl_ard_summary( | ||
| ard, | ||
| by = TRTA, | ||
| statistic = "{n} (p)}" | ||
| ) | ||
| ae_tbl <- tbl_ard_summary( | ||
| ard, | ||
| by = TRTA, | ||
| statistic = "{n} ({p})" | ||
| ) | ||
| ae_tbl <- tbl_ard_summary( | ||
| ard, | ||
| by = TRTA, | ||
| statistic = list(all_categorical() ~ "{n} ({p})") | ||
| ) | ||
| ae_tbl | ||
| ae_tbl <- tbl_ard_summary( | ||
| ard, | ||
| by = TRTA, | ||
| statistic = list(all_categorical() ~ "{n} ({p})") | ||
| ) |> | ||
| sort_ard_hierarchical() | ||
| ard <- ard_tabulate( | ||
| data = cards::ADAE, | ||
| by = TRTA, | ||
| variables = c(AESOC, AEDECOD), | ||
| denominator = cards::ADSL | ||
| ) |> | ||
| sort_ard_hierarchical() | ||
| ard <- ard_stack_hierarchical( | ||
| data = cards::ADAE, | ||
| by = TRTA, | ||
| variables = c(AESOC, AEDECOD), | ||
| denominator = cards::ADSL, | ||
| id = USUBJID | ||
| ) |> | ||
| sort_ard_hierarchical() | ||
| ae_tbl <- tbl_ard_summary( | ||
| ard, | ||
| by = TRTA, | ||
| statistic = list(all_categorical() ~ "{n} ({p})") | ||
| ) | ||
| ae_tbl <- tbl_ard_hierarchical( | ||
| ard, | ||
| by = TRTA, | ||
| statistic = list(all_categorical() ~ "{n} ({p})") | ||
| ) | ||
| ae_tbl <- tbl_ard_hierarchical( | ||
| ard, | ||
| by = TRTA, | ||
| variables = c(AESOC, AEDECOD), | ||
| statistic = list(all_categorical() ~ "{n} ({p})") | ||
| ) | ||
| ae_tbl | ||
| ard <- ard_stack_hierarchical( | ||
| data = cards::ADAE, | ||
| by = TRTA, | ||
| variables = c(AESOC, AEDECOD), | ||
| denominator = cards::ADSL, | ||
| statistic = list(all_categorical() ~ "{n} ({p})"), | ||
| id = USUBJID | ||
| ) |> | ||
| sort_ard_hierarchical() | ||
| ae_tbl <- tbl_ard_hierarchical( | ||
| ard, | ||
| by = TRTA, | ||
| variables = c(AESOC, AEDECOD), | ||
| statistic = list(all_categorical() ~ "{n} ({p})") | ||
| ) | ||
| ae_tbl | ||
| ard <- ard_stack_hierarchical( | ||
| data = cards::ADAE, | ||
| by = TRTA, | ||
| variables = c(AESOC, AEDECOD), | ||
| denominator = cards::ADSL, | ||
| id = USUBJID | ||
| ) |> | ||
| sort_ard_hierarchical() | ||
| ae_tbl <- tbl_ard_hierarchical( | ||
| ard, | ||
| by = TRTA, | ||
| variables = c(AESOC, AEDECOD) | ||
| ) | ||
| ae_tbl | ||
| devtools::load_all() | ||
| getwd() | ||
| setwd("D:/ARDs/cards") | ||
| getwd() | ||
| devtools::load_all() | ||
| ard <- ard_stack_hierarchical( | ||
| data = cards::ADAE, | ||
| by = TRTA, | ||
| variables = c(AESOC, AEDECOD), | ||
| denominator = cards::ADSL, | ||
| statistic = list(all_categorical() ~ "{n} ({p})"), | ||
| id = USUBJID | ||
| ) |> | ||
| sort_ard_hierarchical() | ||
| ADSL | ||
| table(ADSL$TRTA) | ||
| ard <- ard_stack_hierarchical( | ||
| data = cards::ADAE, | ||
| by = TRTA, | ||
| variables = c(AESOC, AEDECOD), | ||
| denominator = cards::ADSL, | ||
| statistic = list(all_categorical() ~ "{n} ({p})"), | ||
| id = USUBJID | ||
| ) |> | ||
| sort_ard_hierarchical(sort_col = Placebo) | ||
| ard <- ard_stack_hierarchical( | ||
| data = cards::ADAE, | ||
| by = TRTA, | ||
| variables = c(AESOC, AEDECOD), | ||
| denominator = cards::ADSL, | ||
| statistic = list(all_categorical() ~ "{n} ({p})"), | ||
| id = USUBJID | ||
| ) |> | ||
| sort_ard_hierarchical(sort_col = 'Placebo') | ||
| ae_tbl <- tbl_ard_hierarchical( | ||
| ard, | ||
| by = TRTA, | ||
| variables = c(AESOC, AEDECOD) | ||
| ) | ||
| ae_tbl | ||
| ard <- ard_stack_hierarchical( | ||
| data = cards::ADAE, | ||
| by = TRTA, | ||
| variables = c(AESOC, AEDECOD), | ||
| denominator = cards::ADSL, | ||
| statistic = list(all_categorical() ~ "{n} ({p})"), | ||
| id = USUBJID | ||
| ) |> | ||
| sort_ard_hierarchical(sort_col = 'Xanomeline High Dose') | ||
| ae_tbl <- tbl_ard_hierarchical( | ||
| ard, | ||
| by = TRTA, | ||
| variables = c(AESOC, AEDECOD) | ||
| ) | ||
| ae_tbl | ||
| devtools::check() | ||
| devtools::install_dev_deps() | ||
| devtools::check() | ||
| devtools::test_coverage() | ||
| devtools::install_dev_deps() | ||
| devtools::check() | ||
| devtools::check() | ||
| styler::style_file("R/sort_ard_hierarchical.R") | ||
| styler::style_file("R/sort_ard_hierarchical.R") | ||
| spelling::update_wordlist() | ||
| install.packages('spelling') | ||
| spelling::update_wordlist() | ||
| spelling::update_wordlist() | ||
| spelling::update_wordlist() | ||
| devtools::check() | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,10 @@ | ||
| .Rproj.user | ||
| docs | ||
| .Rhistory | ||
| .RData | ||
| .Ruserdata | ||
|
Melkiades marked this conversation as resolved.
|
||
| .DS_Store | ||
| docs | ||
| tests/testthat/_snaps/**/*.new.md | ||
| tests/testthat/_snaps/**/*.new.svg | ||
| revdep | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need to add this to .gitignore
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(the file)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh my goodness! can you add, please? I am surprised it wasn't already there! 😱