rls_update_cpp | R Documentation |
This function applies the k-step recursive least squares scheme to estimate parameters in a linear regression model.
y |
Vector of observation |
X |
Matrix of input variables (design matrix) |
theta |
Vector of parameters (initial value) |
P |
Covariance matrix (initial value) |
lambda |
Forgetting factor |
k |
Forecast horizon |
n |
Length of the input |
np |
Dimension of P (np x np) |
istart |
Start index |
kmax |
Keep only the last kmax rows for next time |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.