Skip to content

Commit

Permalink
Update gtsummary_tests.csv
Browse files Browse the repository at this point in the history
Updated two-way ANOVA documentation

ddsjoberg#1998
  • Loading branch information
MauKappel authored Oct 16, 2024
1 parent 09015d4 commit dd8fdaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data-raw/gtsummary_tests.csv
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ tbl_survfit,TRUE,FALSE,,survival,survdiff,survival::survdiff,gtsummary:::add_p_t
tbl_survfit,TRUE,FALSE,,survival,coxph_lrt,survival::coxph,"\(...) gtsummary:::add_p_tbl_survfit_coxph(..., test_type = ""log"")",TRUE,"survival::coxph(Surv(.) ~ variable, data, ...)",Cox regression (LRT),
tbl_survfit,TRUE,FALSE,,survival,coxph_wald,,"\(...) gtsummary:::add_p_tbl_survfit_coxph(..., test_type = ""wald"")",TRUE,"survival::coxph(Surv(.) ~ variable, data, ...)",Cox regression (Wald),
tbl_survfit,TRUE,FALSE,,survival,coxph_score,,"\(...) gtsummary:::add_p_tbl_survfit_coxph(..., test_type = ""sc"")",TRUE,"survival::coxph(Surv(.) ~ variable, data, ...)",Cox regression (Score),
tbl_continuous,TRUE,FALSE,,stats,anova_2way,,gtsummary:::add_p_test_anova_2way,FALSE,lm(continuous_variable ~ by + variable),Two-way ANOVA,
tbl_continuous,TRUE,FALSE,,stats,anova_2way,,gtsummary:::add_p_test_anova_2way,FALSE,"lm(continuous_variable ~ by + variable) |> broom::glance()",Two-way ANOVA,
tbl_continuous,TRUE,TRUE,,stats,t.test,stats::t.test,"\(...) gtsummary:::add_p_test_tbl_summary_to_tbl_continuous(..., test_name = ""t.test"")",TRUE,"t.test(continuous_variable ~ as.factor(variable), data = data, conf.level = 0.95, ...)",t-test,
tbl_continuous,TRUE,FALSE,,stats,aov,stats::aov,"\(...) gtsummary:::add_p_test_tbl_summary_to_tbl_continuous(..., test_name = ""aov"")",FALSE,"aov(continuous_variable ~ as.factor(variable), data = data) %>% summary()",One-way ANOVA,
tbl_continuous,TRUE,FALSE,,stats,oneway.test,stats::onewway.test,"\(...) gtsummary:::add_p_test_tbl_summary_to_tbl_continuous(..., test_name = ""oneway.test"")",TRUE,"oneway.test(continuous_variable ~ as.factor(variable), data = data)",One-way ANOVA,
tbl_continuous,TRUE,FALSE,,stats,kruskal.test,stats::kruskal.test,"\(...) gtsummary:::add_p_test_tbl_summary_to_tbl_continuous(..., test_name = ""kruskal.test"")",FALSE,"kruskal.test(data[[continuous_variable]], as.factor(data[[variable]]))",Kruskal-Wallis test,
tbl_continuous,TRUE,FALSE,,stats,wilcox.test,stats::wilcox.test,"\(...) gtsummary:::add_p_test_tbl_summary_to_tbl_continuous(..., test_name = ""wilcox.test"")",TRUE,"wilcox.test(as.numeric(continuous_variable) ~ as.factor(variable), data = data, ...)",Wilcoxon rank-sum test,
tbl_continuous,TRUE,FALSE,,lme4,lme4,lme4::glmer,"\(...) gtsummary:::add_p_test_tbl_summary_to_tbl_continuous(..., test_name = ""lme4"")",FALSE,"lme4::glmer(by ~ (1 \UFF5C group), data, family = binomial) %>% anova(lme4::glmer(variable ~ continuous_variable + (1 \UFF5C group), data, family = binomial))",random intercept logistic regression,
tbl_continuous,TRUE,FALSE,,stats,ancova,,"\(...) gtsummary:::add_p_test_tbl_summary_to_tbl_continuous(..., test_name = ""ancova"")",FALSE,lm(continuous_variable ~ variable + adj.vars),ANCOVA,
tbl_continuous,FALSE,FALSE,,stats,ancova_lme4,,"\(...) gtsummary:::add_p_test_tbl_summary_to_tbl_continuous(..., test_name = ""ancova_lme4"")",FALSE,"lme4::lmer(continuous_variable ~ variable + adj.vars + (1 \UFF5C group), data)",ANCOVA with random intercept,
tbl_continuous,FALSE,FALSE,,stats,ancova_lme4,,"\(...) gtsummary:::add_p_test_tbl_summary_to_tbl_continuous(..., test_name = ""ancova_lme4"")",FALSE,"lme4::lmer(continuous_variable ~ variable + adj.vars + (1 \UFF5C group), data)",ANCOVA with random intercept,

0 comments on commit dd8fdaa

Please sign in to comment.