| rls_update | R Documentation | 
Calculates the RLS update of the model coefficients with the provived data.
rls_update(model, datatr = NA, y = NA, runcpp = TRUE)
| model | A model object | 
| datatr | a data.list with transformed data (from model$transform_data(D)) | 
| y | A vector of the model output for the corresponding time steps in  | 
| runcpp | Optional, default = TRUE. If TRUE, a c++ implementation of the update is run, otherwise a slower R implementation is used. | 
See vignette ??ref(recursive updating, not yet finished) on how to use the function.
Returns a named list for each horizon (model$kseq) containing the variables needed for the RLS fit (for each horizon, which is saved in model$Lfits):
It will update variables in the forecast model object.
See rls_predict.
# See rls_predict examples
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.