Tag Info

I will assume that you do not have a control group (otherwise, you could proceed as similarly but add a group variable to the fit). This makes this kind of tricky, but here's an idea: Denote with $h_{p,t}$ the heart rate of patient $p \in \mathcal{P}$ at time $t \in \{1, ..., 10\}$, and with $a_{t}$ an indicator variable that takes value one after treatment (...