View source: R/sign_consistency_utils.R
non_overlapping_halves_split | R Documentation |
The function returns a split of trials into two distinct (non-overlapping) halves randomly.
non_overlapping_halves_split(trial_selection)
trial_selection |
indicator vector of the same length as the number of trials in the relevant condition, with equal number of trials. The vector contains indicators for whether each trial is selected for group 0 (FALSE), or group 1 (TRUE). |
a list with two items:
grp0 - a vector of indicators for whether each trial belongs to to the first split.
grp1 - the complementary indicators vector to 'grp0'.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.