test_wilcoxon_for_groups: Calculate Wilcoxon's test (paired or not) for multiple...

Description Usage Arguments Value

View source: R/explore.R

Description

Calculate Wilcoxon's test (paired or not) between two sets for multiple groups. The groups are specified by column group, the sets by column set, e.g.:

Suppose you had two sets of plants comprising three plants each. One set will be placed by the window, the other in the corner. You measure height once a week for ten weeks. Your data looks like:

1
 ID  set  week  height

1 1 1 1 6 2 2 1 1 5 3 3 1 1 4 4 4 2 1 5 5 5 2 1 4 6 6 2 1 6 7 1 1 2 7 8 2 1 2 7 9 3 1 2 6 10 4 2 2 6 11 5 2 2 4 12 6 2 2 6 13 1 1 3 8 14 2 1 3 9 15 3 1 3 8 ...

You would specify: id = ID, set = set, group = week, column = height to compare height between both sets (set``) for each week (group').

Usage

1
test_wilcoxon_for_groups(data, column, group, id, set, paired)

Arguments

data

A tibble containing the data.

column

Which column to use.

group

The column that parts the variable into groups.

id

A column holding ids to identify the same entity in each group.

set

A column indicating the two sets to compare values in groups with.

paired

Calculate a paired (signed-rank) test or not (rank-sum).

Value

list


randomchars42/eenv documentation built on May 20, 2019, 1:29 p.m.