TS_LG_object | R Documentation |
Prepare a time series for a local Gaussian inspection
TS_LG_object(
TS_data,
details = NULL,
main_dir = c("~", "LG_DATA"),
save_dir = NULL,
.remove_ties = TRUE
)
TS_data |
The time series data we will work upon. This can
either be an observed or a simulated time series. If
|
details |
This can be used to add a reminder that will be
shown under the interactive investigation later on. The
default value |
main_dir |
The main directory into which the information will
be stored. Default value |
save_dir |
The sub-directory of |
.remove_ties |
A logical value, default |
This function will for a given (sample from a) time series
create a directory that will be used to store all the files
that occur during the local Gaussian analysis. The function
will in addition create a local info-file to take care of the
subsequent bookkeeping. Moreover, this function will also
maintain a global info-file in the main_dir
-directory,
where information about the top-level part of the
directory-structure is stored – in order to avoid the
despicable situation that more than one directory stores
information about the exact same set of data. The sample will
be nudged a tiny bit (always using 1 as the seed-value) if ties
are detected in it. The algorithm ensures that this nudge is
of a small order compared to the original values.
This function will take care of some file-handling before it returns a two-component list to the work-flow, containing the following nodes:
A logical value that reveals whether or not
the time series from TS_data
already was stored in the
folder main_dir
.
A list whose format depends upon whether or not
TS_data
was created by TS_sample
– and some of
the content are only connected to the internal work-flow of
this function. The four parts of result
that always is
present is TS_key
(the origin of the time series),
TS
(the values), N
(the number of observations),
and save_dir
(the path to the save-directory). These
four values will be used by the functions that analyses
TS
based upon Local Gaussian Approximations and Local
Gaussian Spectral Densities.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.