Description Usage Arguments Value Author(s) References See Also Examples
Obtain prediction based on current estimate of sparse linear regression model
| 1 2 | 
| object | Current RAP object | 
| Xnew | New observation from which to predict | 
| ... | Additional arguments | 
Produces a matrix of predicted values
Ricardo Pio Monti
Monti et al, "A framework for adaptive regularization in streaming Lasso models", 2016
| 1 2 3 4 5 6 7 8 9 |   # 
  library(lars)
  data(diabetes)
  Data = cbind(diabetes$y, diabetes$x)
  # initialize RAP object with a burn in of 50 observations
  R = RAP(X = matrix(diabetes$x[1:50,], nrow=50),
    y = diabetes$y[1:50], r = .995, eps = 0.0005, l0 = .1)
  # make predictions:
  #predict.RAP(object = R, Xnew = diabetes$x[50:70,])
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.