Check Expand Flag After Treatment Switch
Check if patients have switched treatment in eligible trials and set expand = 0
.
expand_until_switch(s, n)
s
: numeric vector where 1
indicates a treatment switch in that periodn
: length of sVector of indicator values up until first switch.
Useful links