shuffle_alt: Alternating Trial Order

Description Usage Arguments Value Examples

View source: R/simulation.R

Description

Generate trial order so that the levels of the within-subject factor form an alternating sequence.

Usage

1
shuffle_alt(n_subj, n_obs)

Arguments

n_subj

Number of subjects.

n_obs

Number of observations per subject.

Value

An unnamed list of length n_subj, with each element of that list being a vector of length n_obs containing the position number for each trial.

Examples

1
2
3
shuffle_alt(4, 4)

sim_2x2(4, 4, rand_fn="shuffle_alt")

dalejbarr/autocorr documentation built on March 27, 2021, 3:03 a.m.