Schedule a series of event objects
Schedule a series of event objects
ev_seq(..., ID = NULL, .dots = NULL, id = NULL) ## S3 method for class 'ev' seq(...)
... |
event objects or numeric arguments named |
ID |
numeric vector of subject IDs |
.dots |
a list of event objects that replaces |
id |
deprecated; use |
The doses for the next event line start after all of the doses from the previous event line plus one dosing interval from the previous event line (see examples).
When numerics named wait
are mixed in with the
event objects, a period with no dosing activity is
incorporated into the sequence, between the adjacent
dosing event objects. Values for wait
can
be negative.
Values for time
in any event object act like
a prefix time spacer wherever that event
occurs in the event sequence (see examples).
Use the generic seq
when the first argument
is an event object. If a waiting period is the
first event, you will need to use ev_seq
. When
an event object has multiple rows, the end time for
that sequence is taken to be one dosing interval
after the event that takes place on the last
row of the event object.
A single event object.
e1 <- ev(amt=100, ii=12, addl=1) e2 <- ev(amt=200) seq(e1, e2) seq(e1, .ii = 8, e2) seq(e1, wait = 8, e2) seq(e1, .ii = 8, e2, ID = 1:10) ev_seq(.ii = 12, e1, .ii = 120, e2, .ii = 120, e1) seq(ev(amt=100, ii=12), ev(time=8, amt=200))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.