expand_until_switch {TrialEmulation} | R Documentation |
Check if patients have switched treatment in eligible trials
and set expand = 0
.
expand_until_switch(s, n)
s |
numeric vector where |
n |
length of s |
Vector of indicator values up until first switch.