View source: R/preprocess-function.R
phase_pairs | R Documentation |
Calculate phase-pairs based on phases and session numbering.
phase_pairs(phase, session = seq_along(phase))
phase |
vector of treatment indicators or a character or factor vector indicating unique treatment phases. |
session |
numeric vector of measurement occasions. |
phases <- rep(c("A","B","A","B"), each = 4)
sessions <- 1:length(phases)
phase_pairs(phases, sessions)
phases <- rep(c("A","B","C","A","B","C","D"), each = 4)
phase_pairs(phases)
phases <- rep(c("B","A","C","B","A","B","C","A"), each = 4)
phase_pairs(phases)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.