S3 generic for adding objects. The TrialComparison method
delegates to $add() and modifies the existing comparison by reference.
The TrialComparison method appends objects to the comparison.
Arguments
- x
An object supporting an
add()method, such as aTrialComparison.- ...
For
TrialComparison, designs, plans, simulations, lists or comparisons to append. The optional named argumentobjectsis appended after the other arguments, with the same rules asgetComparison().
Examples
comparison <- getComparison(fixed = getDesignFixed())
comparison |> add(sequential = getDesignGroupSequential(kMax = 2))
comparison |> add(objects = list(other = getDesignFixed(alpha = 0.05)))
