Skip to content

Commit

Permalink
closes #163
Browse files Browse the repository at this point in the history
  • Loading branch information
ddsjoberg committed Jun 1, 2024
1 parent 19c0ee8 commit cb0da82
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
7 changes: 5 additions & 2 deletions R/ard_aod_wald_test.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,18 @@
#'
#' @param x regression model object
#' @param ... arguments passed to `aod::wald.test(...)`
#' @inheritParams ard_regression
#'
#' @return data frame
#' @export
#'
#' @examplesIf do.call(asNamespace("cardx")$is_pkg_installed, list(pkg = "aod", reference_pkg = "cardx"))
#' lm(AGE ~ ARM, data = cards::ADSL) |>
#' ard_aod_wald_test()
ard_aod_wald_test <- function(x, ...) {
ard_aod_wald_test <- function(x, tidy_fun = broom.helpers::tidy_with_broom_or_parameters, ...) {
set_cli_abort_call()
check_pkg_installed("broom.helpers", reference_pkg = "cardx")

# check installed packages ---------------------------------------------------
check_pkg_installed("aod", reference_pkg = "cardx")

Expand All @@ -23,7 +26,7 @@ ard_aod_wald_test <- function(x, ...) {

# run regression() -----------------------------------------------------------
reg_model <- cards::eval_capture_conditions(
ard_regression_basic(x, intercept = TRUE, stats_to_remove = c(
ard_regression_basic(x, tidy_fun = tidy_fun, intercept = TRUE, stats_to_remove = c(
"var_type",
"var_label",
"var_class", "label",
Expand Down
9 changes: 8 additions & 1 deletion man/ard_aod_wald_test.Rd

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

0 comments on commit cb0da82

Please sign in to comment.