View source: R/TS_boot_sample.R
TS_boot_sample | R Documentation |
This internal function will, based on the specified bootstrapping-algorithm and the given time series, create and save a matrix of bootstrapped time series.
TS_boot_sample(
TS,
main_dir,
save_dir,
nb = 5,
boot_type = c("cibbb_tuples", "block"),
block_length = 20,
boot_seed = NULL
)
TS |
The original time series that we want to create bootstrap-replicates of. |
main_dir |
The path to the main directory, that contains the file-hierarchy created when using the local Gassian approach for the investigation of time series. |
save_dir |
A specification of the directory to be used when
saving (and loading) data. The default value |
nb |
An integer that specifies how many bootstrap-replicates we want to use in our analysis. Default value 5 (at least in the development phase). |
boot_type |
This argument should be either
|
block_length |
The length of the blocks to be used when
|
boot_seed |
Use this to enable reproducible results. The
default value |
The bootstrapped replicates are stored in a matrix with
nb
rows and length(TS)
columns, i.e. each row is
a bootstrapped replicate of TS
.
A list with the following three components is returned to the internal workflow.
The path (to the hierarchy) given by the
main_dir
-argument.
The internal (in-hierarchy) path to the saved data.
The (in-hierarchy) name of the directory that the files are saved into.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.