Analysis results data for Mood two sample test of scale. Note this not to be confused with the Brown-Mood test of medians.
Arguments
- data
(
data.frame
)
a data frame. See below for details.- by
(
tidy-select
)
column name to compare by.- variable
(
tidy-select
)
column name to be compared.- ...
arguments passed to
mood.test(...)
Details
For the ard_moodtest()
function, the data is expected to be one row per subject.
The data is passed as mood.test(data[[variable]] ~ data[[by]], ...)
.
Examples
cards::ADSL |>
ard_moodtest(by = "SEX", variable = "AGE")
#> {cards} data frame: 4 x 9
#> group1 variable context stat_name stat_label stat
#> 1 SEX AGE moodtest statistic Z-Statis… 0.129
#> 2 SEX AGE moodtest p.value p-value 0.897
#> 3 SEX AGE moodtest method method Mood two…
#> 4 SEX AGE moodtest alternative Alternat… two.sided
#> ℹ 3 more variables: fmt_fn, warning, error