Description Usage Arguments Value
View source: R/gen_data_utils.R
This function generates a regular grid and simulates a time series for each location according to a STARMA model specification.
1 2 3 |
Nsites |
Number of locations in the grid |
Ntimes |
Number of points in each time series to generate |
coef_spec |
Coefficient specifications. Should be a named list
with slots |
gen_coef |
A Boolean indicating whether |
mtype |
Type of STARMA model (should only be provided if |
trash |
A number of initial time series points to be discarded at each location. |
ndigits |
Number of digits to keep when rounding coefficients. |
seed |
Seed to feed to |
grid.h |
Height of the grid (in number of locations).
Defaults to |
grid.w |
Width of the grid (in number of locations).
Defaults to |
A list with three slots: data
, a matrix of spatio-temporal data
(columns correspond to locations, rows to time-stamps); coef
, a vector of
the coefficients actually used to generate the data; and grid
, a list
containing the positions of location and the neighbour matrices.
@seealso generate_stdata
, generate_coef
, generate_grid
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.