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, ...)
x |
An object of class 'utilities'. |
... |
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)
o1=iAR::utilities()
o1<-gentime(o1, n=200, distribution = "expmixture", lambda1 = 130,
lambda2 = 6.5,p1 = 0.15, p2 = 0.85)
st=o1@times
mean(diff(st))
o1=iAR::utilities()
o1<-gentime(o1, n=200, distribution = "expmixture", lambda1 = 15,
lambda2 = 2.5,p1 = 0.15, p2 = 0.85)
st=o1@times
mean(diff(st))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.