Description Usage Arguments Value
Performs a time-wise Monte Carlo experiment where split points are randomly chosen and a window of previous observations are used for training, with a window of following observations used for testing.
1 2 |
data |
full dataset |
tr.perc |
percentage of data used for training. Remaining will be used for testing |
ts.perc |
percentage of data used for testing |
nreps |
number of repetitions/split-points in experiment |
FUN |
function with arguments
|
form |
a formula for model learning |
time |
column name of time-stamp in |
site_id |
column name of location identifier in |
.keepTrain |
if TRUE (default), instead of the results of
|
... |
other arguments to FUN |
If keepTrain
is TRUE
, a list where each slot
corresponds to one repetition or fold, containing a list with
slots results
containing the results of FUN
, and
train
containing a data.frame with the time
and
site_id
identifiers of the observations used in the training
step. Usually, the results of FUN
is a data.frame
with location identifier site_id
, time-stamp time
,
true values trues
and the workflow's predictions
preds
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.