From 7e1adb78bfc33bb497cab2f697b347553bd15968 Mon Sep 17 00:00:00 2001 From: Abinaya Yogasekaram <73252787+ayogasekaram@users.noreply.github.com> Date: Mon, 30 Sep 2024 10:36:07 -0400 Subject: [PATCH] 1315 var labels odds ratio@main (#1317) closes #1315 --------- Co-authored-by: 27856297+dependabot-preview[bot]@users.noreply.github.com <27856297+dependabot-preview[bot]@users.noreply.github.com> --- R/odds_ratio.R | 2 ++ man/odds_ratio.Rd | 3 +++ man/try_car_anova.Rd | 4 ++-- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/R/odds_ratio.R b/R/odds_ratio.R index 2f4a38d2fe..eccdccc1b1 100644 --- a/R/odds_ratio.R +++ b/R/odds_ratio.R @@ -196,6 +196,7 @@ estimate_odds_ratio <- function(lyt, ..., show_labels = "hidden", table_names = vars, + var_labels = vars, .stats = "or_ci", .formats = NULL, .labels = NULL, @@ -214,6 +215,7 @@ estimate_odds_ratio <- function(lyt, lyt, vars, afun = afun, + var_labels = var_labels, na_str = na_str, nested = nested, extra_args = extra_args, diff --git a/man/odds_ratio.Rd b/man/odds_ratio.Rd index 478a18c562..ee88612e3b 100644 --- a/man/odds_ratio.Rd +++ b/man/odds_ratio.Rd @@ -18,6 +18,7 @@ estimate_odds_ratio( ..., show_labels = "hidden", table_names = vars, + var_labels = vars, .stats = "or_ci", .formats = NULL, .labels = NULL, @@ -71,6 +72,8 @@ underneath analyses, which is not allowed.} \item{table_names}{(\code{character})\cr this can be customized in the case that the same \code{vars} are analyzed multiple times, to avoid warnings from \code{rtables}.} +\item{var_labels}{(\code{character})\cr variable labels.} + \item{.stats}{(\code{character})\cr statistics to select for the table. Run \code{get_stats("estimate_odds_ratio")} to see available statistics for this function.} diff --git a/man/try_car_anova.Rd b/man/try_car_anova.Rd index a81cde8287..b3ba87bf83 100644 --- a/man/try_car_anova.Rd +++ b/man/try_car_anova.Rd @@ -9,12 +9,12 @@ try_car_anova(mod, test.statistic) \arguments{ \item{mod}{\code{lm}, \code{aov}, \code{glm}, \code{multinom}, \code{polr} \code{mlm}, \code{coxph}, \code{coxme}, \code{lme}, \code{mer}, \code{merMod}, \code{svyglm}, \code{svycoxph}, - \code{rlm}, or other suitable model object.} + \code{rlm}, \code{clm}, \code{clmm}, or other suitable model object.} \item{test.statistic}{for a generalized linear model, whether to calculate \code{"LR"} (likelihood-ratio), \code{"Wald"}, or \code{"F"} tests; for a Cox or Cox mixed-effects model, whether to calculate \code{"LR"} (partial-likelihood ratio) or - \code{"Wald"} tests; in the default case or for linear mixed models fit by + \code{"Wald"} tests (with \code{"LR"} tests unavailable for Cox models using the \code{tt} argument); in the default case or for linear mixed models fit by \code{lmer}, whether to calculate Wald \code{"Chisq"} or Kenward-Roger \code{"F"} tests with Satterthwaite degrees of freedom (\emph{warning:} the KR F-tests can be very time-consuming).