Skip to content

Commit

Permalink
update after Nolan's review
Browse files Browse the repository at this point in the history
  • Loading branch information
ddsjoberg committed Feb 2, 2024
1 parent 865202a commit 4e07ef1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 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.9021
Authors@R: c(
person("Daniel", "Sjoberg", , "[email protected]", role = c("aut", "cre")),
person("F. Hoffmann-La Roche AG", role = c("cph", "fnd"))
Expand Down
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 4e07ef1

Please sign in to comment.