An S3 generic that serves as the default for add_global_p(anova_fun)
.
The default function uses car::Anova()
(via cardx::ard_car_anova()
) to
calculate the p-values.
The method for GEE models (created from geepack::geeglm()
) returns Wald tests calculated
using aod::wald.test()
(via cardx::ard_aod_wald_test()
). For this method,
the type
argument is not used.
Usage
global_pvalue_fun(x, type, ...)
# Default S3 method
global_pvalue_fun(x, type, ...)
# S3 method for class 'geeglm'
global_pvalue_fun(x, type, ...)
Examples
lm(age ~ stage + grade, trial) |>
global_pvalue_fun(type = "III")
#> {cards} data frame: 15 x 8
#> variable context stat_name stat_label stat fmt_fn
#> 1 (Intercept) car_anova sumsq sumsq 65248.66 1
#> 2 (Intercept) car_anova df Degrees … 1 1
#> 3 (Intercept) car_anova meansq meansq 65248.66 1
#> 4 (Intercept) car_anova statistic Statistic 315.641 1
#> 5 (Intercept) car_anova p.value p-value 0 1
#> 6 stage car_anova sumsq sumsq 548.715 1
#> 7 stage car_anova df Degrees … 3 1
#> 8 stage car_anova meansq meansq 182.905 1
#> 9 stage car_anova statistic Statistic 0.885 1
#> 10 stage car_anova p.value p-value 0.45 1
#> 11 grade car_anova sumsq sumsq 166.309 1
#> 12 grade car_anova df Degrees … 2 1
#> 13 grade car_anova meansq meansq 83.154 1
#> 14 grade car_anova statistic Statistic 0.402 1
#> 15 grade car_anova p.value p-value 0.669 1
#> ℹ 2 more variables: warning, error