modelAD | R Documentation |
This function generates a new time serie that is similar to the original one in relative frequency and auto-dependence, by drawing samples time point per time point from a Bernoulli distribution with the different conditional probabilities as parameter, depending on the state of the previous time point.
modelAD(vec)
vec |
Time series vector |
Time series vector that is similar to the original one in relative frequency and auto-dependence
ts=rep(c(1,1,1,1,1,0,0,0,0,0),15) modelAD(ts)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.