blk.durationOfExposure | R Documentation |
Finds the total (i.e., cumulative) duration of “exposure”
in a block-format
data set.
blk.durationOfExposure(begin.exposure, end.exposure, id, id2 = id, diff.op = "-", fill = 0)
begin.exposure |
A vectors of times delineating when the exposure begins, in |
end.exposure |
Vectors of times delineating when the exposure ends, in |
id,id2 |
A valid |
diff.op |
A function that computes differences between times (i.e., |
fill |
A value to use when no other value is appropriate. |
The time intervals during which exposure occurs are specified by begin/end
pairs (which cannot contain missing values). This function determines
whether the total (cumulative) time of exposure for each individual in a
block-format
data set. Note that the time intervals may
overlap.
If id2
is NULL
,
a vector containing one value for
each level of id
. Otherwise,
a vectors in block-format
with respect to id2
.
Benjamin Rich <mail@benjaminrich.net>
block-format
blk.concomitant
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.