expand_until_switch {TrialEmulation} | R Documentation |
Check Expand Flag After Treatment Switch
Description
Check if patients have switched treatment in eligible trials
and set expand = 0
.
Usage
expand_until_switch(s, n)
Arguments
s |
numeric vector where |
n |
length of s |
Value
Vector of indicator values up until first switch.
[Package TrialEmulation version 0.0.4.0 Index]