Skip to content

Commit

Permalink
Merge branch 'main' into ard-wilcoxtest
Browse files Browse the repository at this point in the history
  • Loading branch information
ddsjoberg authored Feb 2, 2024
2 parents 65c5412 + d5458db commit e142ad5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: cardx
Title: Extra Analysis Results Data Utilities
Version: 0.0.0.9016
Version: 0.0.0.9024
Authors@R: c(
person("Daniel", "Sjoberg", , "[email protected]", role = c("aut", "cre")),
person("F. Hoffmann-La Roche AG", role = c("cph", "fnd"))
Expand Down
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# cardx 0.0.0.9016
# cardx 0.0.0.9024

### New Features
* New package!
4 changes: 2 additions & 2 deletions R/ard_ttest.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#' @examples
#' cards::ADSL |>
#' dplyr::filter(ARM %in% c("Placebo", "Xanomeline High Dose")) |>
#' ard_ttest(by = "ARM", variable = "AGE")
#' ard_ttest(by = ARM, variable = AGE)
#'
#' # constructing a paired data set,
#' # where patients receive both treatments
Expand Down Expand Up @@ -96,7 +96,7 @@ ard_paired_ttest <- function(data, by, variable, id, ...) {
cards::eval_capture_conditions({
# adding this reshape inside the eval, so if there is an error it's captured in the ARD object
data_wide <- .paired_data_pivot_wider(data, by = by, variable = variable, id = id)
# perform paried t-test
# perform paired t-test
stats::t.test(x = data_wide[["by1"]], y = data_wide[["by2"]], paired = TRUE, ...) |>
broom::tidy()
}),
Expand Down
2 changes: 1 addition & 1 deletion man/ard_ttest.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e142ad5

Please sign in to comment.