| gentime | R Documentation |
A method for generating time points based on a statistical distribution. The results are stored in the 'times' slot of the 'utilities' object.
gentime(x = NULL, ...)
x |
An object of class 'utilities', or 'NULL' (the default). When 'x' is 'NULL' or omitted, the 'utilities' object is created internally, so 'gentime(n = 200)' is equivalent to the three-step pattern 'o <- utilities(); o <- gentime(o, n = 200); o'. |
... |
Additional arguments for generating time points:
|
An updated 'utilities' object with the generated observation times stored in the 'times' slot.
Eyheramendy_2018iAR
set.seed(12917)
st=gentime(n=200, distribution = "expmixture", lambda1 = 130,
lambda2 = 6.5, p1 = 0.15, p2 = 0.85)@times
mean(diff(st))
st=gentime(n=200, distribution = "expmixture", lambda1 = 15,
lambda2 = 2.5, p1 = 0.15, p2 = 0.85)@times
mean(diff(st))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.