Description Usage Arguments Details Examples
Resamples given timeseries.
1 | regenerateTS(ts, TSn = 1)
|
ts |
generated timeseries using ARp |
TSn |
number of timeseries to be (re)generated |
You have used the generateTS
function and you wish to generate more time
series. Instead of re-running generateTS
you can use regenerateTS
,
which generates timeseries using the parameters previously calculated by the
generateTS
function, and thus it is faster.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | library(CoSMoS)
## define marginal distribution and arguments with target
## autocorrelation structure
x <- generateTS(margdist = 'burrXII',
margarg = list(scale = 1,
shape1 = .75,
shape2 = .25),
acsvalue = acs(id = 'weibull',
t = 0:30,
scale = 10,
shape = .75),
n = 1000, p = 30, p0 = .5, TSn = 3)
## generate new values with same parameters
r <- regenerateTS(x)
plot(r)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.