Set a comparison test
Arguments
- spec
A
simtab_spec.- method
Test method. Defaults to
"auto". Categorical methods are"chisq","fisher","mcnemar", and"trend"; continuous methods are"t","wilcoxon","anova", and"kruskal". Use"none"orFALSEto clear the comparison test. Whenmethodis omitted butp.adjust,paired, orsmdis supplied, the existing test choice is kept, sotable1(...) |> test(smd = TRUE)adds SMDs without adding p-values.- p.adjust
Multiplicity adjustment method, or
NULLto leave unchanged.- paired
Logical; whether paired tests are requested.
- smd
Logical; whether standardized mean differences are requested.
Examples
test(stratify(describe(simtab(epitabl), age), adjudicated_acs), "wilcoxon")
#> <simtab_spec>
#> not yet computed
#> data: 1500 rows x 22 columns; hash c0787c425db7
#> describe: age
#> stratify/by: adjudicated_acs
#> adjust: <unset>
#> summary: auto
#> measure: <unset> (ref: <unset>, conf.level: 0.95)
#> test: wilcoxon
#> design: <unset>
#> style: default