| sample_until | R Documentation |
Sample Event Times Until a Maximum Time
sample_until(maxval, meantime, sampler, ..., oversample = 0.1, verbose = FALSE)
maxval |
a positive numeric: the maximum time to simulate until |
meantime |
a positive numeric: the mean time between events |
sampler |
a function: the sampling distribution for time between events |
... |
any parameter arguments to |
A numeric vector of event times: the cumulative sum of draws from
sampler until the last value exceeds maxval. That sum is then trimmed to
values <= maxval. The first value in the vector is always 0.
Other heterogeneity:
het.hist(),
het.population(),
het.run(),
sample_pair()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.