Calculate session-by-treatment interactions based on phases and session numbering.

session_by_treatment(phase, session, trt_phase)

Arguments

phase

vector of treatment indicators or a character or factor vector indicating unique treatment phases.

session

numeric vector of measurement occasions.

trt_phase

character string indicating the phase value corresponding to the treatment condition.