Description Usage Arguments Value
View source: R/momentum_prediction.R
Test LOAD's strategy of predicting momentum. Returns
each momentum prediction.
See evaluate_momentum_at_window for a description
of momentum
| 1 2 3 4 5 6 7 | predict_momentum_LOAD(
  aggregated_momentum_data,
  regularization_factor,
  momentum_threshold,
  max_cv_window = NULL,
  momentum_colname = "momentum"
)
 | 
| aggregated_momentum_data | A tibble
of class  | 
| regularization_factor | A regularization factor used in the LOAD prediction, if a vector then cross-validates (at each step choosing the factor that had the least error over previous time, random first time) | 
| momentum_threshold | The threshold to be classified as with momentum. If a vector then cross-validates. (at each step choosing the factor that had the least error over previous time, random first time) | 
| max_cv_window | If  | 
| momentum_colname | The name of the column holding the
true momentum values (as a string),
defaults to  | 
aggregated_momentum_data
with added columns:
LOAD_prediction holding LOAD's predicted
momentum for that time, regularization_factor
holding the regularization factor used in that prediction,
momentum_threshold holding the
momentum threshold used in that prediction.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.