rarefy {timeordered} | R Documentation |
Simulates the effect of insufficient sampling by data rarefaction.
Description
Randomly removes a fixed fraction of the event list.
Usage
rarefy(raw, fraction)
Arguments
raw |
The event list to be rarefied. |
fraction |
A fraction (between 0 and 1) of the events to be randomly deleted. |
Value
An event list with floor(nrow(raw) * fraction) events remaining.
Author(s)
Benjamin Blonder bblonder@email.arizona.edu.
See Also
randomizeidentities
,randomizetimes
Examples
##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
[Package timeordered version 1.0.0 Index]