Various S4 methods which are not directly for use by users.
# S4 method for trial_sequence,data.frame
set_data(
object,
data,
censor_at_switch,
id = "id",
period = "period",
treatment = "treatment",
outcome = "outcome",
eligible = "eligible"
)# S4 method for trial_sequence
set_expansion_options(
object,
output,
chunk_size = 0,
first_period = 0,
last_period = Inf,
censor_at_switch
)
# S4 method for trial_sequence
expand_trials(object)
A trial_sequence object
A data.frame
containing all the required variables in the person-time format, i.e., the
<U+2018>long<U+2019> format.
Name of the variable for identifiers of the individuals. Default is <U+2018>id<U+2019>.
Name of the variable for the visit/period. Default is <U+2018>period<U+2019>.
Name of the variable for the treatment indicator at that visit/period. Default is <U+2018>treatment<U+2019>.
Name of the variable for the indicator of the outcome event at that visit/period. Default is <U+2018>outcome<U+2019>.
Name of the variable for the indicator of eligibility for the target trial at that visit/period. Default is <U+2018>eligible<U+2019>.