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

View source: R/preprocess-function.R

session_by_treatmentR Documentation

Calculate session-by-treatment interactions for a unique case

Description

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

Usage

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 May 29, 2024, 12:11 p.m.