session_by_treatment: Calculate session-by-treatment interactions for a unique case

Description Usage Arguments

View source: R/preprocess-function.R

Description

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

Usage

1
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.


scdhlm documentation built on Jan. 13, 2021, 7:10 p.m.